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);
Updated by Ingo Renner over 13 years ago
Instead of adding another argument, I'd suggest using the TYPO3 user agent string
Updated by Steffen Gebert over 13 years ago
#28344 added t3lib_http_Request
with a configuration option for the user agent.
Unfortunately, it was a bit too late for 4.6 to use this in t3lib_div::getUrl()
, but this should be done with TYPO3 4.7.
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Susanne Moog over 9 years ago
- Status changed from New to Closed
Feature will be handled by the main ticket #28258 where all cURL option tickets are consolidated.
Actions