httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49766] New: POST request on CGI script generating empty body closes connection
Date Tue, 17 Aug 2010 17:06:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49766

           Summary: POST request on CGI script generating empty body
                    closes connection
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_cgid
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rlips@cloudmark.com


I just installed a fresh apache2 (2.2.14) on Ubuntu Lucid.
I wrote a small CGI script for test purpose:

~# cat /usr/lib/cgi-bin/test
#!/usr/bin/perl

print "Content-length: 0\r\n";
print "Content-type: text/plain\r\n\r\n";
~#

Here is my test:
~$ telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
POST /cgi-bin/test HTTP/1.1
Host: localhost
Content-Length: 20

aaaaaaaaaaaaaaaaaa
Connection closed by foreign host.
~$

Connection is immediately closed without any response!
In the logs, I can see the following:

~# tail /var/log/apache2/access.log
127.0.0.1 - - [17/Aug/2010:19:03:10 +0200] "POST /cgi-bin/test HTTP/1.1" 200 0
"-" "-"
~# tail /var/log/apache2/error.log
[Tue Aug 17 19:03:10 2010] [error] [client 127.0.0.1] (104)Connection reset by
peer: ap_content_length_filter: apr_bucket_read() failed

Clearly the connection is not 'reset by peer'

Please advise...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message