# Problems with POST data

**URL:** <https://www.ruby-forum.com/t/problems-with-post-data/117805>\
**Category:** NGINX\
**Created:** [October 20, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/problems-with-post-data/117805 "2007-10-20T15:34:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manlio\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Post date:** [October 20, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/problems-with-post-data/117805/1 "2007-10-20T15:34:51Z")

</div>

I’m testing mod\_wsgi with Apache Bench, using a POST command, but there  
is something wrong.

Here is the log:  
\*1 http process request line  
\*1 http request line: “POST /wsgi-echo/ HTTP/1.0”  
\*1 http uri: “/wsgi-echo/”  
\*1 http args: “”  
\*1 http exten: “”  
\*1 http process request header line  
\*1 http header: “User-Agent: ApacheBench/2.0.40-dev”  
\*1 http header: “Host: localhost:1234”  
\*1 http header: “Accept: _/_”  
\*1 http header: “Content-length: 467001”  
\*1 http header: “Content-type: text/plain”  
\*1 http header done  
\*1 generic phase: 0  
\*1 http script value: “”  
\*1 http script set var  
\*1 http script var  
\*1 http script if  
\*1 http script if: false  
\*1 find location for “/wsgi-echo/”  
\*1 find location: “/”  
\*1 find location: “/wsgi-2/”  
\*1 find location: “/wsgi-broken-reference/”  
\*1 find location: “/wsgi-buffer/”  
\*1 find location: “/wsgi-counter-context/”  
\*1 find location: “/wsgi-counter-global/”  
\*1 find location: “/wsgi-counter/”  
\*1 find location: “/wsgi-echo/”  
\*1 find location: “/wsgi-file/”  
\*1 using configuration “/wsgi-echo/”  
\*1 http cl:467001 max:4194304  
\*1 generic phase: 2  
\*1 post rewrite phase: 3  
\*1 generic phase: 4  
\*1 access phase: 5  
\*1 access phase: 6  
\*1 post access phase: 7  
\*1 http client request body preread 874  
\*1 http read client request body  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 8192  
\*1 http client request body recv 7168  
\*1 http client request body rest 385231  
\*1 http client request body recv -2  
\*1 http client request body rest 385231  
\*1 http read client request body  
\*1 http client request body recv 0  
\*1 client closed prematurely connection, client: 127.0.0.1, server:  
localhost, URL: “/wsgi-echo/”, host: “localhost:1234”

What’s the problem?  
There is a strange recv: -2

I have also tried with a normal nginx installation, and the problem is  
still here.

I’m using nginx 0.5.31.

Thanks Manlio P.
