'Content-Length' header for POSTs

Igor Sysoev is at rambler-co.ru
Tue Jul 28 13:56:36 MSD 2009


On Sat, Jul 25, 2009 at 05:05:59PM +0100, Joe Jacobs wrote:

> FYI, this is the request that is received by the server.
> 
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http request line: "POST
> /test.php HTTP/1.1"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http uri: "/test.php"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http args: ""
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http exten: "sync"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http process request header line
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header: "framecode: x"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header: "framepin: y"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header: "User-Agent:
> ALP.SYNC.CLIENT.1.0"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header: "Content-Type:
> text/xml-alp"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header:
> "Transfer-Encoding: chunked"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header: "Connection: Keep-Alive"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header: "Host: example.com"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http header done
> 2009/07/25 15:41:04 [info] 29780#0: *10 client sent
> "Transfer-Encoding: chunked" header while reading client request
> headers, client: 12.34.56.78, server: example.com, request: "POST
> /test.php HTTP/1.1", host: "example.com"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http finalize request: 411,
> "/test.php" 1
> 2009/07/25 15:41:04 [debug] 29780#0: *10 event timer del: 25: 2996007162
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http special response: 411, "/test.php"
> 2009/07/25 15:41:04 [debug] 29780#0: *10 http set discard body
> 2009/07/25 15:41:04 [debug] 29780#0: *10 HTTP/1.1 411 Length Required
> Server: nginx/0.7.61
> Date: Sat, 25 Jul 2009 15:41:04 GMT
> Content-Type: text/html
> Content-Length: 181
> Connection: close
> 
> Is the error coming up because the content-length isn't 0?

Are you sure that such requests were handled by 0.7.25 ?
nginx never supported a chunked client body.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list