Mailinglisten-Archive |
* Leonhard Holz wrote:
> Damit meinen die wohl eher das die URL einen absoluten Pfad enthalten soll,
Nein. Siehe
http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html
absoluteURI = scheme ":" *( uchar | reserved )
relativeURI = net_path | abs_path | rel_path
uchar = unreserved | escape
reserved = ";" | "/" | "?" | ":" | "_(at)_" | "&" | "=" | "+"
net_path = "//" net_loc [ abs_path ]
abs_path = "/" rel_path
rel_path = [ path ] [ ";" params ] [ "?" query ]
http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2616.html
gibt auch gleich ein Beispiel eines richtigen Location
Headers:
An example is:
Location: http://www.w3.org/pub/WWW/People.html
D.h. "Location: www.php.net/blubb.html" ist falsch und
"Location: blubb.html" erst Recht.
(Zum Bauen einer absoluten URI kann man sich z.B. mit
$HTTP_HOST behelfen.)
--
PHP Schulungen und | International PHP Conference
Schulungsmaterial: | 05. - 07.11.2001
http://thinkphp.de/ | Astron Hotel, Frankfurt
http://rent-a-phpwizard.de/schulungen.php | http://www.php-kongress.de/
php::bar PHP Wiki - Listenarchive