Re: [www-jigsaw] <none>

On Wed, 13 Apr 2005, Peggy cheng wrote:

>
> I am studying about HTTP 1.1 Chunk Encoding feature.
> May I get the Chunk Encoding CGI script source code which is mentioned
> in http://jigsaw.w3.org/HTTP/ ?

Hi,
The current configuration on jigsaw.w3.org is only a header filter that 
removes Content-Length and force the server to use Chunked encoding.
However, here is a simple CGI script to achieve the same thing
(Note that it's up to the server ot chunk, not the script).

#!/bin/sh
# A script to test chunk encoding

echo "Content-Type: text/plain\r\n\r\n"


echo "This output will be chunked encoded by the server, if your client is HTTP/1.1"
echo "Below this line, is 1000 repeated lines of 0-9."
echo "-------------------------------------------------------------------------"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"
echo "01234567890123456789012345678901234567890123456789012345678901234567890"

(repeated 1000 times)

-- 
Yves Lafon - W3C
"Baroula que barouleras, au tiéu toujou t'entourneras."

Received on Wednesday, 13 April 2005 15:43:27 UTC