Re: HTML Header Location - relative URI issue

From: Date: Mon, 03 Oct 2005 00:58:30 +0000
Subject: Re: HTML Header Location - relative URI issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223540@lists.php.net to get a copy of this message
Jaepil Kim wrote:
HTML 1.1 specifies that Location in HTML Header should be absolute URI. Also says that some of the browsers will not work with relative URI. Can anyone show me which browsers fail to work with *relative URI* in a HTML Header Location?
I assume you mean HTTP 1.1, not HTML 1.1. IMHO the question you should be asking is why would you want to knowingly disobey the standard and send a relative URI? It's not exactly difficult to send an absolute URI in any circumstance I can think of. There is no guarantee that future user agents will continue to work with your website if you do send a relative URI, as they are usually (albeit loosely) based around the standards, which require an absolute URI [1]. [1] http://w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/

« previous php.general (#223540) next »