#28839Add USERAGENT to cURL request in t3lib_div#getURL()
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); Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.