Tema: Re: koks http adreso max ilgis pagal standartus
Autorius: Laimis
Data: 2009-04-10 18:34:36
saimhe rašė:
>> http://tools.ietf.org/html/rfc3986
>> ...
>  Taigi kalba eina ne apie visą URI, o domeno vardą, kuris ten vadinamas
> "host". Be to, negi DNS atidavinėja Path, Query ir kitus URI komponentus?


Nesuprantu, kodėl niekam neužkliuvo pačio HTTP protokolo RFC...

HTTP 1.1:
http://www.faqs.org/rfcs/rfc2616.html

„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. A server
SHOULD return 414 (Request-URI Too Long) status if a URI is longer
than the server can handle (see section 10.4.15).

  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.“



„10.4.15 414 Request-URI Too Long

The server is refusing to service the request because the Request-URI
is longer than the server is willing to interpret. This rare
condition is only likely to occur when a client has improperly
converted a POST request to a GET request with long query
information, when the client has descended into a URI "black hole" of
redirection (e.g., a redirected URI prefix that points to a suffix of
itself), or when the server is under attack by a client attempting to
exploit security holes present in some servers using fixed-length
buffers for reading or manipulating the Request-URI.“