'Content-Length' header for POSTs

Joe Jacobs joe at hazardcell.com
Sat Jul 25 20:05:59 MSD 2009


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?





More information about the nginx mailing list