Michael Schröpl: hat eine Url eine max. Länge

Beitrag lesen

Hallo Christoph,

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1 folgendes: "The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs"

vielleicht solltest Du die beiden nachfolgenden Zeilen dieses Dokuments
gleich mit zitieren, da sie mit dem Thema durchaus noch ezwas zu tun haben:

A server SHOULD return 414 (Request-URI Too Long) status if a URI is

longer than the server can handle

(see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.15)

Der Server darf also selber entscheiden, was er "aushält",
er _sollte_ dem Client dann mitteilen, daß er überfordert wurde
(er _muss_ dies aber nicht tun).

Note: Servers ought to be cautious about depending on URI lengths

above 255 bytes, because some older client or proxy

implementations might not properly support these lengths.

Und Rücksichtnahme auf das schwächste Glied in der Kette ist immer gut.

Viele Grüße
<img src="http://www.schroepl.net/projekte/gzip_cnc/gzip_cnc.gif" border=0 alt=""> Michael