httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: [users@httpd] Re: LimitRequestBody http return code
Date Wed, 17 Nov 2010 18:01:29 GMT
On Mon, Nov 15, 2010 at 1:33 PM, Mohit Anchlia <mohitanchlia@gmail.com> wrote:
> On Mon, Nov 15, 2010 at 1:23 PM, Jeroen Geilman <jeroen@adaptr.nl> wrote:
>> On 11/15/2010 10:21 PM, Mohit Anchlia wrote:
>>>
>>> On Mon, Nov 15, 2010 at 1:18 PM, Jeroen Geilman<jeroen@adaptr.nl>  wrote:
>>>
>>>>
>>>> On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
>>>>
>>>>>
>>>>> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jonas_lists@frukt.org>
>>>>>  wrote:
>>>>>
>>>>>
>>>>>>
>>>>>> On 2010-11-04 23:38, Mohit Anchlia wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> 500 (Internal Server Error) Can't read entity body: Connection
reset
>>>>>>> by
>>>>>>> peer
>>>>>>> Content-Type: text/plain
>>>>>>> Client-Date: Thu, 04 Nov 2010 22:36:21 GMT
>>>>>>> Client-Warning: Internal response
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> If this is in something done with perl LWP, the "Client-Warning:
>>>>>> Internal response" header indicates that the error is generated by
the
>>>>>> perl or XS HTTP code and not by the server.
>>>>>>
>>>>>>
>>>>>>
>>>>>> <http://search.cpan.org/~gaas/libwww-perl-5.837/lib/LWP/UserAgent.pm#REQUEST_METHODS>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> But even access logs don't show http 403:
>>>>>
>>>>> 10.4.106.55 - - [04/Nov/2010:15:39:36 -0700] "POST /val/validate.cgi
>>>>> HTTP/1.1" 400 364 "-" "libwww-perl/5.79" "eitws1" 0 - - - 188 522
>>>>>
>>>>>
>>>>>
>>>>
>>>> No, it says 400 - bad request.
>>>> Check the logs of your CGI for what went wrong.
>>>>
>>>
>>> Nothing is wrong in the request. If I just remove LimitRequestBody and
>>> send the same request it works.
>>>
>>
>> I am not claiming it is a bad request. Apache tells you it is.
>
> I don't believe right thing the return code is correctly returned when
> I use LimitRequestBody. I can't seem to explain why I would get http
> 400 for all the good requests that are over certain size but it works
> when I remove or increase the limit.
>>
Since LimitRequestBody is not working as I expect it to. I am
wondering if there is anyway I can write my own handler that looks at
content-length and descides to either pass it through to mod-jk worker
or reject it with customized error message. Is it possible to do that?

>> --
>> J.
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message