abort: HTTP Error 414: Request-URI Too Large

Robert Figura nc-figuraro at netcologne.de
Thu Mar 11 12:18:34 CST 2010


Sune Foldager <cryo at cyanite.org> schrieb:
> 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)."

My memories have obviously failed me. Thanks for the correction.

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

At least so far i was right.

Thanks and Kind Regards
  - Robert Figura


More information about the Mercurial mailing list