[TYPO3-core] RFC: pageNotFound_handling HTTP status fix
Dmitry Dulepov
dima at spamcop.net
Mon Apr 24 13:35:03 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Martin Kutschker wrote:
> 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.
Why don't you write a bug report for Mozilla Thunderbird? Or you think I
wrote this e-mail in telnet? :)
> Why did you add yet another getURL function?
It is explained in the phpDoc comment to the new function ;)
> Why are REFERER and USER_AGENT faked for this call? Why is
> FOLLOWLOCATION used here and not in t3lib_div::getURL().
Because this is the way how 404 page works in Apache. It gets user agent
from the client and original URL as a referer. Following location frees
me from processing redirects if 404 page is a redirect. Otherwise I will
have to add a loop there checking for 30x and acting accordingly.
fopen/cURL will do it faster and in the tested way. Why should I
duplicate their behavior?
> b) yet another way to retrieve a URL: stream_context_create
Nope, this function only creates context to supply additional
information to fopen.
> The part where a relative URL is resoved can be easily added around
> line 1298, no need for a new method.
Did not understand this...
Dmitry.
- --
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFETLfnRVcYnKJ8N6kRAoiUAJ9h0FWTnJMul1heesDo4bFOQDgWlACeI8Q3
HuBxMwjUjXBA+uVyeFs39Go=
=ALMn
-----END PGP SIGNATURE-----
More information about the TYPO3-team-core
mailing list