Project

General

Profile

Actions

Bug #14916

closed

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

Added by Thorsten Kahler over 18 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-08-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

t3lib_div.patch (781 Bytes) t3lib_div.patch Administrator Admin, 2005-08-10 13:55
bug_1364_v2.diff (1.91 KB) bug_1364_v2.diff Administrator Admin, 2007-07-06 18:06
bug_1364_v3.diff (1.98 KB) bug_1364_v3.diff Administrator Admin, 2007-07-06 18:25

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16976: t3lib_div::getURL breaks on some optionsClosedMartin Kutschker2007-02-12

Actions
Actions

Also available in: Atom PDF