[TYPO3-core] RFC: pageNotFound_handling HTTP status fix
Martin Kutschker
Martin.Kutschker at blackbox.net
Mon Apr 24 13:23:17 CEST 2006
Dmitry Dulepov <dima at spamcop.net> writes on
Sun, 23 Apr 2006 12:07:31 +0200 (METDST):
>
>
PLEASE, don't send the attachmant as first part of the mail. When this happens I get the attachment as mail text and can't use the patch.
> 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.
Why did you add yet another getURL function?
I noticed the follwoing differences to t3lib_div::getURL():
a) slighty different options for cURL
Why are REFERER and USER_AGENT faked for this call? Why is FOLLOWLOCATION used here and not in t3lib_div::getURL().
b) yet another way to retrieve a URL: stream_context_create
If it makes sense this should be in t3lib_div::getURL().
The part where a relative URL is resoved can be easily added around line 1298, no need for a new method.
Masi
PS: I noticed that you cannot use cURL with https the way t3lib_div::getURL() is written.
More information about the TYPO3-team-core
mailing list