You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/08/17 19:17:39 UTC
DO NOT REPLY [Bug 49767] New: No last-chunk '0' after POST request
on CGI script
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
DO NOT REPLY [Bug 49767] No last-chunk '0' after POST request on CGI
script
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49767
--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2010-08-18 02:12:32 EDT ---
I assume if you are just doing a GET things work fine, correct?
Your CGI script is no capable of handling POST requests as it does not read the
request body prior to sending an answer.
--
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
DO NOT REPLY [Bug 49767] No last-chunk '0' after POST request on CGI
script
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49767
Dan Poirier <po...@pobox.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Dan Poirier <po...@pobox.com> 2010-08-18 06:29:24 EDT ---
*** This bug has been marked as a duplicate of bug 49766 ***
--
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