Issue Bug Closed

#14916t3lib_div::getURL() uses cURL only for http protocol

Thorsten Kahler 08/10/05, 13:55 updated 08/06/10, 13:19

Description

t3lib_div::getURL($url) checks whether the string parameter $url starts with ‘http://’. All URLs not fitting to this pattern are opened by fopen().
IMHO this restriction is not neccessary because cURL [1] is able to handle more than half a dozen protocols.
I appended a patch file as an example. It enables ftp, ftps, http, https, gopher and telnet to be red via cURL. cURL options may be set as TYPO3_CONF_VARS or as an optional second parameter of t3lib_div::getURL().

Are there any reasons not to use cURL for those other protocols?

[1] cURL: http://curl.haxx.se/
2 cURL-functions of PHP: http://www.php.net/manual/en/ref.curl.php
(issue imported from #M1364)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.