I hope this is a good forum for this question, if not let me know a better one.

I'm running some automated tests against Apache, and have gotten
fails with chunked POSTs.

I've found information on ApacheWeek saying support  of HTTP 1.1,
included the ability to:

            Receive chunked POST and PUT submissions

The following is one of  the tests, that I think is attempting
to do a chunked POST, and is failing.

POST http://localhost/cgi-bin/echo.pl HTTP/1.1
Host: localhost
Transfer-encoding: chunked

0001c
The twenty-eight characters

0

GET http://localhost/small.html HTTP/1.1
Host: localhost
Connection: close

Here is the response Apache gave:
HTTP/1.1 411 Length Required
Date: Wed, 27 Oct 1999 13:31:29 GMT
Server: Apache/1.3.9 (Unix)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

11d
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>411 Length Required</TITLE>
</HEAD><BODY>
<H1>Length Required</H1>
A request of the requested method POST requires a valid Content-length.<P>
chunked Transfer-Encoding forbidden: /cgi-bin/echo.pl<P>
</BODY></HTML>

I assume Apache does support the HTTP 1.1 spec and that
chunked POST can be used to return dynamic CGI output, so
I don't understand why such tests are failing. But maybe this
test isn't testing what I think it is.

Anyone know what's going on?

Thanks,

Tom

Reply via email to