|
@@ -51,10 +51,12 @@ include_once 'IcbcConstants.php';
|
|
|
|
|
|
$response = curl_exec($ch);
|
|
$response = curl_exec($ch);
|
|
$resinfo = curl_getinfo($ch);
|
|
$resinfo = curl_getinfo($ch);
|
|
- curl_close($ch);
|
|
|
|
|
|
+
|
|
dump($response);
|
|
dump($response);
|
|
dump($resinfo);
|
|
dump($resinfo);
|
|
|
|
+dump(curl_error($ch));
|
|
exit;
|
|
exit;
|
|
|
|
+ curl_close($ch);
|
|
if($resinfo["http_code"] != 200){
|
|
if($resinfo["http_code"] != 200){
|
|
throw new Exception("response status code is not valid. status code: ".$resinfo["http_code"]);
|
|
throw new Exception("response status code is not valid. status code: ".$resinfo["http_code"]);
|
|
}
|
|
}
|