[TYPO3-core] RFC: pageNotFound_handling HTTP status fix

Martin Kutschker Martin.Kutschker at blackbox.net
Tue Apr 25 10:49:40 CEST 2006


Dmitry Dulepov <dima at spamcop.net> writes on 
Sun, 23 Apr 2006 12:07:31 +0200 (METDST):

>
> Solution: use cURL (if enabled in install tool) or fopen to fetch
> error page internally and pass it to client with correct header. Pass
> correct information about user agent and referrer.


This patch enhances t3lib_div::getURL() with request headers.

The patch adds https support to CURL and uses CURLOPT_FOLLOWLOCATION.

My patch doesn't check for ini_get('allow_url_fopen') because if you haven't enabled this option fopen will fail anyway. And this check isn't in the current t3lib_div::getURL probbabyl for the same reason.

Masi 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1897 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060425/eac78a2a/attachment.bin 


More information about the TYPO3-team-core mailing list