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 49767] New: No last-chunk '0' after POST request on CGI script
Date Tue, 17 Aug 2010 17:17:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49767

           Summary: No last-chunk '0' after POST request on CGI script
           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


After a fresh install of Apache2 (2.2.14), I wrote a small CGI script:

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

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

Then, ran a small test (for a small script :):

~$ 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
HTTP/1.1 200 OK
Date: Tue, 17 Aug 2010 17:12:01 GMT
Server: Apache/2.2.14 (Ubuntu)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/plain

3
foo
Connection closed by foreign host.
~$

As we can see, I can't get the last-chunk '0\r\n\r\n' at the end of the HTTP
response. It just ends up in a timeout...

-- 
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