httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <>
Subject RE: Apache 1.3.x - Problem with handling ErrorDocument for 413 ?
Date Mon, 23 Jun 2003 14:32:06 GMT
It'll be nice if somebody can please review the patch and give me the


-----Original Message-----
From: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) []
Sent: Friday, June 20, 2003 12:02 PM
To: ''
Subject: Apache 1.3.x - Problem with handling ErrorDocument for 413 ?

	One of my collegue ran into this problem using Apache 1.3.27 (works
fine in Apache 2.0.x), and attached is a brief description.

1. Configure the httpd.conf to use "LimitRequestBody" directive by adding, 
   LimitRequestBody 1000

2. Add a customized error response for the above directive.
   ErrorDocument 413 /error413.htm

3. Make a request from the client with content length greater than 1000 (I
tried using POST)

This should result in a error with the customized error html error413.htm
but instead, it displays the standard 413 error message !!. If we do the
following, things seem work fine..

--- http_request.c      Fri Jun 21 16:59:16 2002
+++  Fri Jun 20 11:57:12 2003
@@ -1128,6 +1128,7 @@
                r->method = ap_pstrdup(r->pool, "GET");
                r->method_number = M_GET;
+            ap_table_unset(r->headers_in, "Content-Length");
             ap_internal_redirect(custom_response, r);

It's probably just masking the problem and not the correct solution.
We tried to discard the body before the redirect, but it wouldn't work, as
the request gets bitten again because of the call to

Has anybody seen this problem before .. or is it a user error ?


View raw message