diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 0290e33..d1afc9b 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -238,6 +238,10 @@ if(!function_exists("get_web_curl")) { $options[CURLOPT_URL] = get_web_build_qs($url, $data); } + if(count($headers) > 0) { + $options[CURLOPT_HTTPHEADER] = $headers; + } + $ch = curl_init(); curl_setopt_array($ch, $options);