Update webpagetool.php

This commit is contained in:
Namhyeon Go 2018-12-12 12:18:47 +09:00 committed by GitHub
parent 242bf2e574
commit 0ebf442442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'];