in reply to Re: redirect() vs location
in thread redirect() vs location

I was lead to beleive that after HTTP 1.1 all requests returned a status code, even if it is just a 200... I would suppose that Location would have a status code of its own, like temporarily redirected, or something of the sort. I can't remember where I heard this so please correct me if this is nonsense.

#!/home/bbq/bin/perl
# Trust no1!

Replies are listed 'Best First'.
RE: RE: Re: redirect() vs location
by SuperCruncher (Pilgrim) on Jun 28, 2000 at 22:52 UTC
    like temporarily redirected
    Yeah, that's 302. The specification is available at W3C's site.

    Slightly unrelated, but I read somewhere that the "Location: http://www.foo.com/" method is almost depracted.

    Rather, "URI: http://www.foo.com/" is the new-style approach that everyone should be using.

    And as far as I know, every HTTP request returns a status code.