phpbar.de logo

Mailinglisten-Archive

[php] Absoluter Pfad bei Location

[php] Absoluter Pfad bei Location

Andreas Lange php_(at)_phpcenter.de
Thu, 12 Sep 2002 12:53:27 +0200


> Hallo Liste,

Hi

> hat jemand eine Begründung dafür, das beim Location-Header
> ein absoluter Pfad empfohlen wird?

Weil es so im HTTP Standard definiert ist ;-)

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Auszug:
<-- snip -->
14.30 Location
The Location response-header field is used to redirect the recipient to a
location other than the Request-URI for completion of the request or
identification of a new resource. For 201 (Created) responses, the Location is
that of the new resource which was created by the request. For 3xx responses,
the location SHOULD indicate the server's preferred URI for automatic
redirection to the resource. The field value consists of a single absolute
URI.

       Location       = "Location" ":" absoluteURI

An example is:

       Location: http://www.w3.org/pub/WWW/People.html
<-- snip -->


> Gruß,
> Jonathan

Gruss

Andreas Lange

--
Haas Media GmbH, Agentur für moderne Medien
Rehbockstraße 25, 30167 Hannover
Tel: (05 11) 270 38 70, Fax: (05 11) 270 38 69
http://www.haas-media.de/
PGP FP: 4204 C703 2D73 58DA  F75B C1F2 E524 6949


php::bar PHP Wiki   -   Listenarchive