1234567891011121314151617181920212223242526 |
- <?php
- include 'config.php';
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- $toolID = $_GET['toolID'];
- $workerID = $_GET['workerID'];
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://localhost:9296/url');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'info=UmbauRequest&behavior=fork_running&url=http://192.168.20.133:8080/PHP/processes/sa_umbau.xml&init={"toolID":"'.$toolID.'","rolle":"VORB","workerID":"'.$workerID.'"}');
- $headers = array();
- $headers[] = 'Content-Type: application/x-www-form-urlencoded';
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- if (curl_errno($ch)) {
- echo 'Error:' . curl_error($ch);
- }
- curl_close($ch);
- header("Location: ".$formLocation."Vorb.html?workerID=".$workerID);
- ?>
|