abort: HTTP Error 414: Request-URI Too Large

Sune Foldager cryo at cyanite.org
Thu Mar 11 05:47:11 CST 2010


On 10-03-2010 20:24, Robert Figura wrote:

> Sune Foldager<cryo at cyanite.org>  wrote:
>> Sometimes Mercurial's http wire protocol sends rather large request
>> URIs, which can sometime overflow the buffer the web server has set
>> aside for these things, which will then abort the request. In some cases
>> the limit is configurable on the web server.
>
> I think there is a standard for this and my memory suggests it would be
> either 4k or 16k. The POST request has no such limit if i remember
> furthermore correctly.

Actually, the RFC states:

"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)."

That being said, most web-servers do limit this. POST has no specific 
limits, no.

/Sune


More information about the Mercurial mailing list