DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42287>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42287 Summary: chunked encoded response to POST request to cgi script is abruptly closed Product: Apache httpd-2 Version: 2.2.4 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: mod_cgi AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] When I send a POST request to a php/perl script. Chunked Response from apache 2.2.x/trunk is abruptly closed. Sometimes it works fine and sometimes we don't see last 0 in chunked response. telnet hostname 4004 Trying 192.18.120.216... Connected to localhost Escape character is '^]'. POST /cgi-bin/test2.php HTTP/1.1 Host: localhost:4004 Accept: */* Content-Type: application/x-www-form-urlencoded Connection: close Content-Length: 6 x=abcd HTTP/1.1 200 OK Date: Sat, 28 Apr 2007 03:12:05 GMT Server: Apache/2.3.0-dev (Unix) mod_ssl/2.3.0-dev OpenSSL/0.9.8a DAV/2 X-Powered-By: PHP/5.2.1 Connection: close Transfer-Encoding: chunked Content-Type: text/html 2c x=abcd postdata = ++ test2.php cgi script! ------------------------------------------- $ curl -H "Connection: close" --data "x=abcd" --dump-header - http://hostname:4014/cgi-bin/test2.pl HTTP/1.1 200 OK Date: Sun, 29 Apr 2007 03:24:03 GMT Server: Apache/2.2.5-dev (Unix) mod_ssl/2.2.5-dev OpenSSL/0.9.8a DAV/2 Content-type : text/html Connection: close Transfer-Encoding: chunked Content-Type: text/plain test2.pl cgi script! curl: (18) transfer closed with outstanding read data remaining ------------------------------------------- #!/opt/php5.2.1/bin/php <? foreach ($_POST as $key => $value) { print "$key=$value\n"; } print "postdata = $HTTP_RAW_POST_DATA ++\n"; print "test2.php cgi script!\n"; ?> ------------------------------------------- #!/usr/bin/perl print "Content-type : text/html\r\n"; print "\r\n"; print "test2.pl cgi script!\n"; ------------------------------------------- In error log sometimes I saw this message. [Sat Apr 28 20:27:25 2007] [error] [client 192.18.120.216] (104)Connection reset by peer: ap_content_length_filter: apr_bucket_read() failed ------------------------------------------- This happens with both httpd-2.2.x and trunk. I am using apr and apr-util from trunk. This could potentially be apr bug too. The behavior is not at all predictable. It sometimes works ok and sometimes fails. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
