W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2004

Content-Range question

From: Mihail <hej@hot.ee>
Date: Tue, 22 Jun 2004 12:28:37 +0300
To: ietf-http-wg@w3.org
Message-Id: <20040622122837.2714f227.hej@hot.ee>

Hello,

I'm building a webserver as a hobby and I ran into a problem while
sending a file with the Content-Range directive.
I have a 70634 byte file which I transfer to the client in three steps:

HTTP/1.1 206 Partial Content
Date: =)
Server: nifnaf
Last-Modified: =)
Connection: Close
Content-Location: http://localhost:20051/Changes/index.html
Content-Length: 32768
Content-type: text/html
Accept-Ranges: bytes
Content-Range: bytes 0-32767/70634

HTTP/1.1 206 Partial Content
Date: =)
Server: nifnaf
Last-Modified: =)
Connection: Close
Content-Location: http://localhost:20051/Changes/index.html
Content-Length: 32768
Content-type: text/html
Accept-Ranges: bytes
Content-Range: bytes 32768-65535/70634

HTTP/1.1 206 Partial Content
Date: =)
Server: nifnaf
Last-Modified: =)
Connection: Close
Content-Location: http://localhost:20051/Changes/index.html
Content-Length: 5098
Content-type: text/html
Accept-Ranges: bytes
Content-Range: bytes 65536-70633/70634

The problem is that only the first segment (0-32767/70634) is being displayed
in the browser. My question is whether the server has authority to specify Content-Range
without the client's Range request and still hope that the content will be fully recieved?

Thanks,
Mihail
Received on Tuesday, 22 June 2004 05:28:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:49:31 GMT