Project

General

Profile

Actions

Feature #28839

closed

Add USERAGENT to cURL request in t3lib_div#getURL()

Added by C. Lambert almost 13 years ago. Updated almost 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

Also available in: Atom PDF