Nginx answers too large requests with bad status
reallfqq-nginx at yahoo.fr
Tue Oct 30 01:09:16 UTC 2012
To avoid saying odd things, the only think I am sure of when I checked the
exception output from Python is that it started with '<html>'. Maybe the
rest of the output came from my script.
I am not at work any more I can't check.
The only thing I am pretty sure about is that the status must be a status
like '200 OK' or '414 WTHAreYouDoin'.
I hate Python, but I'll trust it on that one ^^
I'll try to make a little PoC if needed,
On Mon, Oct 29, 2012 at 8:57 PM, B.R. <reallfqq-nginx at yahoo.fr> wrote:
> I am not seeking a solution to the 414 problem, I know how to address the
> Thanks anyway
> The browser output has just be made to illustrate the wrong answer.
> The problem triggered using a Python script which checked against the
> 'status' field of a HTTP answer to decide on its actions.
> It crashed several times at random occurences with a BadStatusLine
> The exception message was something like '<html>\n\n\n\n200'.
> I do not know the implementation details, although I suspect an answer
> code should be an answer code.
> I didn't get 414, I get something which made my script crash.
> That's why I guess that's a bug
> *B. R.*
> On Mon, Oct 29, 2012 at 8:12 PM, Francis Daly <francis at daoine.org> wrote:
>> On Mon, Oct 29, 2012 at 07:43:27PM -0400, B.R. wrote:
>> Hi there,
>> > When submitting too large requests, Nginx replies a page containing the
>> > right code status but serves the errors page with a HTTP/0.9 (!) 200
>> No, it doesn't.
>> Look at the "curl -i" output.
>> Your browser is making up the 200 status.
>> It is right about the HTTP/0.9 response, though, because nginx couldn't
>> see that the request was HTTP/1.0 or HTTP/1.1. And therefore it "knows"
>> that it was HTTP/0.9.
>> See the thread including http://forum.nginx.org/read.php?2,228425,228431
>> for more details.
>> I think that nginx is not wrong in this case. But I also think that it
>> wouldn't be wrong if this HTTP/0.9 response had two paragraphs, and began
>> with the characters "HTTP/1.1 414".
>> I imagine that if someone provided a justification with a patch, it
>> would be considered like any other suggested patch.
>> Francis Daly francis at daoine.org
>> nginx mailing list
>> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx