diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 9af1b338..c0c1502f 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -121,15 +121,16 @@ class WrenchJobs extends BaseController $local_url = "http://10.10.10.120:3033/marketjobs"; $url = $local_url ; // ."/".$urlPath; //"/generics"; $data = $in; - $content = json_encode($data); - + //$content = json_encode($data); + $content = urlencode($data); $curl = curl_init($url); + curl_setopt($ch, CURLOPT_URL,$content); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type" => "application/json")); - curl_setopt($curl, CURLOPT_POST, false); // true to make POST - curl_setopt($curl, CURLOPT_POSTFIELDS, $content); + // curl_setopt($curl, CURLOPT_POST, true); // true to make POST + // curl_setopt($curl, CURLOPT_POSTFIELDS, $content); $json_response = curl_exec($curl); $status = curl_getinfo($curl, CURLINFO_HTTP_CODE);