HTTP_RANGE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

HTTP_RANGE

Post by cesarcesar »

How/When is $_SERVER['HTTP_RANGE'] or $_ENV['HTTP_RANGE'] set? I am working on a resume download script that requires the HTTP_RANGE to be set... but no matter what i do i cant find how/when its set. Thanks.
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Re: HTTP_RANGE

Post by cesarcesar »

http://tools.ietf.org/id/draft-ietf-htt ... val-00.txt

This link explains a lot about HTTP_RANGE. It still leaves out two important points...
The server will send this header only for documents for which it will
be able to satisfy the byte range request, e.g. for PDF documents, or
images, which can be partially reloaded if the user interrupts the
page load, and image gets only partially cached.
What types of files satisfy the byte range request? also,
The Request-Range header is simply ignored
by a server that does not support it, and it will send the entire
document as a response.
How do i know if my server supports it?
Post Reply