[TYPO3-core] RFC: #1364, #5985, #7624: improved version of getUrl (cUrl, CURLOPT_FOLLOWLOCATION, error reporting)

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sat Feb 23 00:06:31 CET 2008


Martin Kutschker schrieb:
> Hi!
> 
> This is a SVN patch request.
> 
> Problems:
> 
> #1364: t3lib_div::getURL() uses cURL only for http protocol
> #5985: CURLOPT_FOLLOWLOCATION triggers error with safe_mode/open_basedir
> #7624: when getURL fails there is no way to figure out why
> 
> Solutions:
> 
> #1364: Modify regexp to allow http, https, ftp, ftps, sftp and scp 
> (omitting TFTP and telnet where I couldn't figure out where and how to 
> use).
> 
> #5985: Use @ and safe/report the failure. IN 4.1.x only @ is used.
> 
> #7624: Add an error reporting array as parameter. When requesting the 
> headers, this will make getUrl parse HTTP-code and Content-type and 
> report it as well.
> 
> Note: getUrl paramemeter are now checked if they are valid for the 
> requested protocol.
> 
> TODO: Make use of error reporting in approriate parts of the Core (eg UI 
> parts in BE, admin panel in FE, ...)

To increase the fun patch v5 now uses HEAD instead of GET when only 
headers are requested.

Masi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_1364_v5.diff
Type: text/x-diff
Size: 7168 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080223/e8540a46/attachment.diff 


More information about the TYPO3-team-core mailing list