|
@@ -75,7 +75,7 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
|
|
|
$code = curl_getinfo($ci,CURLINFO_HTTP_CODE);
|
|
|
if($code != 200) {
|
|
|
$net_errno = "HTTP-{$code}";
|
|
|
- Log::record("netmodule http_request http errno={$code} url={$url}",Log::ERR);
|
|
|
+ Log::record("netmodule http_request http errno={$net_errno} url={$url}",Log::ERR);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -119,7 +119,7 @@ function http_post_data($url, $body, $headers = array(),&$net_errno = 0)
|
|
|
$code = curl_getinfo($ci,CURLINFO_HTTP_CODE);
|
|
|
if($code != 200) {
|
|
|
$net_errno = "HTTP-{$code}";
|
|
|
- Log::record("netmodule http_request http errno={$code} url={$url}",Log::ERR);
|
|
|
+ Log::record("netmodule http_request http errno={$net_errno} url={$url}",Log::ERR);
|
|
|
}
|
|
|
}
|
|
|
curl_close($ci);
|
|
@@ -191,7 +191,7 @@ function https_request($url, $params = array(), $method = 'GET', $multi = false,
|
|
|
$code = curl_getinfo($ci,CURLINFO_HTTP_CODE);
|
|
|
if($code != 200) {
|
|
|
$net_errno = "HTTP-{$code}";
|
|
|
- Log::record("netmodule http_request http errno={$code} url={$url}",Log::ERR);
|
|
|
+ Log::record("netmodule http_request http errno={$net_errno} url={$url}",Log::ERR);
|
|
|
}
|
|
|
}
|
|
|
curl_close($ci);
|