12345678910111213141516171819202122232425262728 |
- <?php
- include 'config.php';
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- $orderID = $_GET['orderID'];
- $machineID = $_GET['machineID'];
- $articleID = $_GET['articleID'];
- $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=MainProcess&behavior=fork_running&url=http://192.168.20.133:8080/PHP/processes/mainProcess.xml&init={"orderID":"'.$orderID.'","machineID":"'.$machineID.'","articleID":"'.$articleID.'","rolle":"MAB","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."DTC.html?workerID=".$workerID);
- ?>
|