$OWNER_NM, "VHRNO"=>$VHRNO); echo "1"; echo "
"; $content = json_encode($arrCarInfo); echo "2"; echo "
"; $url = "https://carinfo.dev.carisyou.net/carinfo/esmotors/S1/2"; $curl = curl_init($url); echo "3"; echo "
"; curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json")); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $content); echo "4"; echo "
"; $json_response = curl_exec($curl); echo "5"; echo "
"; $status = curl_getinfo($curl, CURLINFO_HTTP_CODE); echo "6"; echo "
"; //echo $status; //echo "
"; if ( $status != 200 ) { die("Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl)); } curl_close($curl); echo "7"; echo "
"; echo $json_response; //echo "
"; //$response = json_decode($json_response, true); //echo $response; //echo "
"; //mysql_close($connect); ?>