You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mohit Anchlia <mo...@gmail.com> on 2010/11/01 01:09:23 UTC

[users@httpd] Re: LimitRequestBody http return code

On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> I am trying to test LimitRequestBody. It looks like it always returns
> Http code 500. Is this as expected?  I thought it's supposed to return
> Http 413.
>
> Is there a way to change the return code of LimitRequestBody?
>

Can someone please help me answer this question? I have a requirement
to use some specific text but can't do that if it keeps returning 500
status code. 500 status code is too generic. Shouldn't it be returning
413?

---------------------------------------------------------------------
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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Thu, Nov 4, 2010 at 4:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> On Thu, Nov 4, 2010 at 3:40 PM, Eric Covener <co...@gmail.com> wrote:
>> On Thu, Nov 4, 2010 at 6:38 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>> On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener <co...@gmail.com> wrote:
>>>> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>>>> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>>>>> I am trying to test LimitRequestBody. It looks like it always returns
>>>>>> Http code 500. Is this as expected?  I thought it's supposed to return
>>>>>> Http 413.
>>>>>>
>>>>>> Is there a way to change the return code of LimitRequestBody?
>>>>>>
>>>>>
>>>>> Can someone please help me answer this question? I have a requirement
>>>>> to use some specific text but can't do that if it keeps returning 500
>>>>> status code. 500 status code is too generic. Shouldn't it be returning
>>>>> 413?
>>>>
>>>> returns 413 here.
>>>
>>> I am seeing the following when I add "LimitRequestBody 400" for my
>>> test in virtual host
>>>
>>> 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
>>>
>>> 500 Can't read entity body: Connection reset by peer
>>> Error Code :500 Can't read entity body: Connection reset by peer
>>
>>
>> Any idea what module those Client-* headers come from?  Might be related.
>
> All I am doing is adding "LimitRequestBody 400" and I see the above in
> my perl script and this is what I see below in access log:
>
> 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

Any ideas why this might be happening. I am not able to get Http 413
at all. Please advise.
>
>>
>> ---------------------------------------------------------------------
>> 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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Thu, Nov 4, 2010 at 3:40 PM, Eric Covener <co...@gmail.com> wrote:
> On Thu, Nov 4, 2010 at 6:38 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>> On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener <co...@gmail.com> wrote:
>>> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>>> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>>>> I am trying to test LimitRequestBody. It looks like it always returns
>>>>> Http code 500. Is this as expected?  I thought it's supposed to return
>>>>> Http 413.
>>>>>
>>>>> Is there a way to change the return code of LimitRequestBody?
>>>>>
>>>>
>>>> Can someone please help me answer this question? I have a requirement
>>>> to use some specific text but can't do that if it keeps returning 500
>>>> status code. 500 status code is too generic. Shouldn't it be returning
>>>> 413?
>>>
>>> returns 413 here.
>>
>> I am seeing the following when I add "LimitRequestBody 400" for my
>> test in virtual host
>>
>> 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
>>
>> 500 Can't read entity body: Connection reset by peer
>> Error Code :500 Can't read entity body: Connection reset by peer
>
>
> Any idea what module those Client-* headers come from?  Might be related.

All I am doing is adding "LimitRequestBody 400" and I see the above in
my perl script and this is what I see below in access log:

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

>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Eric Covener <co...@gmail.com>.
On Thu, Nov 4, 2010 at 6:38 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener <co...@gmail.com> wrote:
>> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>>> I am trying to test LimitRequestBody. It looks like it always returns
>>>> Http code 500. Is this as expected?  I thought it's supposed to return
>>>> Http 413.
>>>>
>>>> Is there a way to change the return code of LimitRequestBody?
>>>>
>>>
>>> Can someone please help me answer this question? I have a requirement
>>> to use some specific text but can't do that if it keeps returning 500
>>> status code. 500 status code is too generic. Shouldn't it be returning
>>> 413?
>>
>> returns 413 here.
>
> I am seeing the following when I add "LimitRequestBody 400" for my
> test in virtual host
>
> 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
>
> 500 Can't read entity body: Connection reset by peer
> Error Code :500 Can't read entity body: Connection reset by peer


Any idea what module those Client-* headers come from?  Might be related.

---------------------------------------------------------------------
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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Mon, Nov 15, 2010 at 1:33 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> On Mon, Nov 15, 2010 at 1:23 PM, Jeroen Geilman <je...@adaptr.nl> wrote:
>> On 11/15/2010 10:21 PM, Mohit Anchlia wrote:
>>>
>>> On Mon, Nov 15, 2010 at 1:18 PM, Jeroen Geilman<je...@adaptr.nl>  wrote:
>>>
>>>>
>>>> On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
>>>>
>>>>>
>>>>> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jo...@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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Mon, Nov 15, 2010 at 1:23 PM, Jeroen Geilman <je...@adaptr.nl> wrote:
> On 11/15/2010 10:21 PM, Mohit Anchlia wrote:
>>
>> On Mon, Nov 15, 2010 at 1:18 PM, Jeroen Geilman<je...@adaptr.nl>  wrote:
>>
>>>
>>> On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
>>>
>>>>
>>>> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jo...@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.
>
> --
> 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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Jeroen Geilman <je...@adaptr.nl>.
On 11/15/2010 10:21 PM, Mohit Anchlia wrote:
> On Mon, Nov 15, 2010 at 1:18 PM, Jeroen Geilman<je...@adaptr.nl>  wrote:
>    
>> On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
>>      
>>> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jo...@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.

-- 
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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Mon, Nov 15, 2010 at 1:18 PM, Jeroen Geilman <je...@adaptr.nl> wrote:
> On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
>>
>> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jo...@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.
>
>
>
> --
> 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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Jeroen Geilman <je...@adaptr.nl>.
On 11/15/2010 10:12 PM, Mohit Anchlia wrote:
> On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman<jo...@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.



-- 
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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Sun, Nov 14, 2010 at 11:58 AM, Jonas Eckerman <jo...@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

> Regards
> /Jonas
>
> --
> Jonas Eckerman
> Fruktträdet & Förbundet Sveriges Dövblinda
> http://www.fsdb.org/
> http://www.frukt.org/
> http://whatever.frukt.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
>
>

---------------------------------------------------------------------
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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Jonas Eckerman <jo...@frukt.org>.
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>

Regards
/Jonas

-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Mohit Anchlia <mo...@gmail.com>.
On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener <co...@gmail.com> wrote:
> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>> I am trying to test LimitRequestBody. It looks like it always returns
>>> Http code 500. Is this as expected?  I thought it's supposed to return
>>> Http 413.
>>>
>>> Is there a way to change the return code of LimitRequestBody?
>>>
>>
>> Can someone please help me answer this question? I have a requirement
>> to use some specific text but can't do that if it keeps returning 500
>> status code. 500 status code is too generic. Shouldn't it be returning
>> 413?
>
> returns 413 here.

I am seeing the following when I add "LimitRequestBody 400" for my
test in virtual host

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

500 Can't read entity body: Connection reset by peer
Error Code :500 Can't read entity body: Connection reset by peer

>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Re: LimitRequestBody http return code

Posted by Eric Covener <co...@gmail.com>.
On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>> I am trying to test LimitRequestBody. It looks like it always returns
>> Http code 500. Is this as expected?  I thought it's supposed to return
>> Http 413.
>>
>> Is there a way to change the return code of LimitRequestBody?
>>
>
> Can someone please help me answer this question? I have a requirement
> to use some specific text but can't do that if it keeps returning 500
> status code. 500 status code is too generic. Shouldn't it be returning
> 413?

returns 413 here.

> ---------------------------------------------------------------------
> 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
>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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