Re: HTTP_Download - resuming
| From: | Michael Wallner | Date: | Tue, 09 Nov 2004 15:13:13 +0000 |
| Subject: | Re: HTTP_Download - resuming | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15399@lists.php.net to get a copy of this message | ||
Hi Barrow H Kwan, you wrote:
> Yes I do. I don't know if I misunderstand what HTTP_Download can
> do.. :)
>
> basically, I have some Big files that will let people download from
> the our web server ( few hundreds mega per file ). I am using
> HTTP_Download ( staticsend ) to serve it. When people stop the
> download and restart it again, it will start all over again from zero
> bytes.
If the client sends the appropriate HTTP headers, i.e.
a range header, HTTP_Download automatically serves
the requested range(s).
It should be poosible to test your script simply with telnet:
$ telnet localhost 80
...
GET /path/to/script.php HTTP/1.1
Connection: close
Host: localhost
Range: bytes=10-15
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc