Update webpagetool.php
This commit is contained in:
parent
aaffec4006
commit
2c71f243e2
|
@ -314,8 +314,12 @@ if(!check_function_exists("get_web_curl")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$options[CURLOPT_POST] = 1;
|
$options[CURLOPT_POST] = 1;
|
||||||
|
if(is_array($data)) {
|
||||||
|
$options[CURLOPT_POSTFIELDS] = http_build_query($data);
|
||||||
|
} else {
|
||||||
$options[CURLOPT_POSTFIELDS] = $data;
|
$options[CURLOPT_POSTFIELDS] = $data;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($method == "get") {
|
if($method == "get") {
|
||||||
$options[CURLOPT_URL] = get_web_build_qs($url, $data);
|
$options[CURLOPT_URL] = get_web_build_qs($url, $data);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user