Re: redirection question



..oO(Erwin Moller)

Michael Fesser wrote:

14.30 Location
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30

Hmm yes. That sounds convincing.
Never trusts rfcs not recommended by me. ;-)

Here is one for you:
http://www.ietf.org/rfc/rfc3986.txt

It clearly describes relative referencing. (Part 4 and 5 mainly)

I'm familiar with it, but even the most recent and generalized RFC for
URI syntax doesn't change the meaning of "absolute URI", which is
required in the HTTP RFC. RFC 3986 just defines what an absolute URI
actually is.

But you haven't seen all. And browsers are not the only user agents. A
bug doesn't become less of a bug, just because it works in the majority.

Well, that may be true.
I only aim my php for internetbrowsers, so I don't know jack about other
agents.
Thanks for the warning though.

I can remember someone having a strange problem with using a relative
URI and a query string in a Location header, which didn't work in Lynx
or something like that. The problem vanished after changing to an
absolute URI. It was posted to a German newsgroup, but I didn't bookmark
it and can't find it at Google Groups at the moment ... :(

Of course it doesn't really prove anything, but at least it shows that
there might be problems, which can easily be avoided by just following
the standards. Be it HTML, CSS or HTTP - it's always a good idea to
adhere to the written standards, because then it's not your fault if
something goes wrong.

Micha
.



Relevant Pages

  • Re: redirection question
    ... required in the HTTP RFC. ... RFC 3986 just defines what an absolute URI ... Deciding WHO decides what the standards are is my current problem. ... it comes to HTTP and the like? ...
    (comp.lang.php)
  • Re: [PHP] Problem with $_POST[] and header();
    ... header requires an absolute URI. ... See RFC 2616, 14.30 ... Pass them as part of a GET, or store them in a session (you may need to ...
    (php.general)
  • Re: [slrn][pan] Moving Along
    ... Blinky the Shark wrote: ... Please remove my name from the membership list of the slrn mafia. ... problem in slrn is a *bug*, ... is currently RFC 2822. ...
    (news.software.readers)
  • Re: Assigning pattern matches to an array
    ... Gunnar Hjalmarsson writes: ... If I have understood it correctly, RFC 822 does not accept backslashes ... A bug in Email::Address? ... Email::Address lists what is to be excluded (control characters and ...
    (comp.lang.perl.misc)
  • Re: NFSv3 client reordering RENAMEs
    ... and RFC 1813 mandates RENAME to be atomic. ... known thing and do you guys consider this feature or a bug? ...
    (Linux-Kernel)