Update webpagetool.php
This commit is contained in:
parent
242bf2e574
commit
0ebf442442
|
@ -327,7 +327,7 @@ if(!function_exists("get_web_page")) {
|
||||||
$errno = $curl_result['errno'];
|
$errno = $curl_result['errno'];
|
||||||
|
|
||||||
if($content !== false) {
|
if($content !== false) {
|
||||||
$req_method = "post"; // JSON data is post request
|
// nothing
|
||||||
} else {
|
} else {
|
||||||
$content = get_web_cmd($url, "jsondata", $data, $proxy, $ua, $ct_out, $t_out, $headers);
|
$content = get_web_cmd($url, "jsondata", $data, $proxy, $ua, $ct_out, $t_out, $headers);
|
||||||
}
|
}
|
||||||
|
@ -339,7 +339,7 @@ if(!function_exists("get_web_page")) {
|
||||||
$errno = $curl_result['errno'];
|
$errno = $curl_result['errno'];
|
||||||
|
|
||||||
if($content !== false) {
|
if($content !== false) {
|
||||||
$req_method = "post"; // JSON data is post request
|
// nothing
|
||||||
} else {
|
} else {
|
||||||
$res = get_web_page($url, $method . ".cmd", $data, $proxy, $ua, $ct_out, $t_out);
|
$res = get_web_page($url, $method . ".cmd", $data, $proxy, $ua, $ct_out, $t_out);
|
||||||
$content = $res['content'];
|
$content = $res['content'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user