This commit is contained in:
CHIEFSOFT\ameye
2024-02-24 19:07:58 -05:00
parent 9fe763caff
commit 726fed6c71
+5 -4
View File
@@ -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);