*/
class HttpAccess
{
- public function getHttpResponse($url, $timeout = 30, $maxBytes = 4194304, $curlWriteFunction = null)
- {
- return get_http_response($url, $timeout, $maxBytes, $curlWriteFunction);
+ public function getHttpResponse(
+ $url,
+ $timeout = 30,
+ $maxBytes = 4194304,
+ $curlHeaderFunction = null,
+ $curlWriteFunction = null
+ ) {
+ return get_http_response($url, $timeout, $maxBytes, $curlHeaderFunction, $curlWriteFunction);
}
public function getCurlDownloadCallback(
&$description,
&$keywords,
$retrieveDescription,
- $curlGetInfo = 'curl_getinfo'
+ $tagsSeparator
) {
return get_curl_download_callback(
$charset,
$description,
$keywords,
$retrieveDescription,
- $curlGetInfo
+ $tagsSeparator
);
}
+
+ public function getCurlHeaderCallback(&$charset, $curlGetInfo = 'curl_getinfo')
+ {
+ return get_curl_header_callback($charset, $curlGetInfo);
+ }
}