#28344Include HTTP Request2 for better HTTP handling
Description
t3lib_div::getUrl() is know to be hudge and has a log of problems with edge cases. Especially it only implements a small subset of the HTTP protocol. This is a problem for extension which want to do some more advanced HTTP magic (for example linkvalidator).
A discussion on v4 list suggested to implement pear/HTTP_Request2 and use t3lib_div::getUrl is a wrapper.
This is the first step which includes HTTP_Request2 and adds t3lib_utility_httpRequest as wrapper which sets default options from TYPO3_CONF_VARS.
Additionally some new TYPO3_CONF_VARS have been added and the old curl options have been deprecated.
The next (and not included step) is to refactor t3lib_div::getUrl.
Reviews 1
Related issues 8
- Bug #20770[t3lib_div::getURL][curl] CURLOPT_HTTPAUTH missing
- Bug #25321getUrl crashes when trying to retrieve a big file
- Feature #27988Override / add curl options to t3lib_div::getUrl
- Feature #28839Add USERAGENT to cURL request in t3lib_div#getURL()
- Bug #45834Detection of curlProxyServer settings buggy on upgrade to 6.0
- Task #28614Add TYPO3 exceptions to \TYPO3\CMS\Core\Http\HttpRequest
- Feature #28615Add logging observer to t3lib_http_Request
- Feature #28626Refactor t3lib_div::getUrl()