Project

General

Profile

Actions

Feature #28839

closed

Add USERAGENT to cURL request in t3lib_div#getURL()

Added by C. Lambert over 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
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); 

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #28344: Include HTTP Request2 for better HTTP handlingClosedPhilipp Gampe2011-07-202011-07-25

Actions
Related to TYPO3 Core - Feature #28258: cURL: allow custom curl paramsRejected2011-07-16

Actions
Actions #1

Updated by Ingo Renner over 13 years ago

Instead of adding another argument, I'd suggest using the TYPO3 user agent string

Actions #2

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.

Actions #3

Updated by Philipp Gampe over 13 years ago

Yes, see #28626

Actions #4

Updated by Mathias Schreiber almost 10 years ago

  • Target version set to 7.4 (Backend)
Actions #5

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #6

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

Also available in: Atom PDF