RFC2068 is obsolete. You should be using RFC2616:Quote:>Hi there,
>I am implement an HTTP web server.
>I've come accross this transfer-encoding. I've read the rfc ( rfc2068
>), but I couldn't understand it rightly.
>can anyone elaborate something more on the transfer-encoding header
>format.
>Thank You.
-----------
Dave Patton
1. Transfer-Encoding: chuunked AND Content-Encoding: deflate
using zlib
http://www.cdrom.com/pub/infozip/zlib/
and
http://www.winimage.com/zLibDll/
with HTTP/1.1
http://sunsite.auc.dk/RFC/rfc/rfc2616.html
I am attempting to send
Transfer-Encoding: chunked
Content-Encoding: deflate
(from a home-built web server)
to a client browser that has indicated its willingness to accept this: Ive RFC'd myself and tested the component peices individually . successfully. Headers where n is the size of the deflated data I am applying this deflation to arbitrary mime types and if i had a website to look at that DOES do this successfully Does my interpretation of the RFC as to the format of the chunked and compressed Thanks in advance.. 3. chunked Transfer-Encoding forbidden: /cgi-bin/echo.pl 5. examples of Transfer-Encoding: chunked 6. how to connect to internet via lan 7. Apache 1.2.x and Transfer-Encoding 9. Announcement- jigg R1 - Look Ahead Mezzianne with Transfer Encoding 11. Causes for "0" bytes transferred in the transfer log 12. "carriage return" and "line feed" encoding 13. Decoding MIME encoded material on UNIX, possible?
HTTP HEADER FOLLOWS:
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*
Accept-Language: en,en-ca;q=0.9,de;q=0.8,fr;q=0.7,it;q=0.6,es;q=0.4,da;q=0.3,he;q=0.2,yi;q=0
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)
Host: 127.0.0.1
Connection: Keep-Alive
my interpretation of the RFC leads me to format my HTTP response as:
chunksize n
deflatedData
chunksize n
deflatedData
chunksize 0
maintaining the original mime-type.
I could compare the output to see what I am doing wrong.. or indeed if
my browser is not handling it properly.
output seem correct?
-db-