Actions
Feature #28839
closedAdd USERAGENT to cURL request in t3lib_div#getURL()
Start date:
2011-08-08
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:
Description
In some cases, it may be necessary to have an useragent set in the cURL request at t3lib_div#getURL(). Some web server filters deny the request when useragent is no set.
- public static function getURL($url, $includeHeader = 0, $requestHeaders = FALSE, &$report = NULL) { + public static function getURL($url, $includeHeader = 0, $requestHeaders = FALSE, &$report = NULL, $useragent = '') { ... curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
Actions