Re: Re: LimitRequestBody http return code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 15, 2010 at 1:33 PM, Mohit Anchlia <mohitanchlia@xxxxxxxxx> wrote:
> On Mon, Nov 15, 2010 at 1:23 PM, Jeroen Geilman <jeroen@xxxxxxxxx> wrote:
>> On 11/15/2010 10:21 PM, Mohit Anchlia wrote:
>>>
>>> On Mon, Nov 15, 2010 at 1:18 PM, Jeroen Geilman<jeroen@xxxxxxxxx>  wrote:
>>>
>>>>
>>>> On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
>>>>
>>>>>
>>>>> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jonas_lists@xxxxxxxxx>
>>>>>  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@xxxxxxxxxxxxxxxx
>>  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>>
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux