send get
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user