Allowing Resumeable Downloads

General ShopSite user discussion

Allowing Resumeable Downloads

Postby DDreslough » Thu Aug 07, 2008 7:17 am

Hello!

I have a customer who's on dialup, and would like to use his download management software to resume downloads. Apache comes preconfigured to allow this, but the ShopSite cgi wrapper seems to be blocking his ability.

We're using a kludgey workaround right now which hopefully will allow him to solve his individual problem, but I'd like to get my ShopSite tuned to work with anyone who uses a download manager.

How can we do this? Is this a feature in ShopSite that I can enable, or is it not available yet?

Here are some sources for information on resuming a download:
http://remository.com/forum/func,view/id,3629/catid,5/
"You have to handle the http request header sent by the client.
There will be a line like this:
Range: bytes=339843-2392437
That means that the client requests the bytes between 339843 and 2392437

So after your fopen(), you should send those bytes to the client. I guess you will need to use fseek and then fread.

Your response header should start with
HTTP/1.1 206 Partial Content
and should have these 3 lines:
Accept-Ranges: bytes
Content-Length: 2052595
Content-Range: bytes 339843-2392437/2392438

You can find more info at these pages:
Header Field Definitions: http://freesoft.org/CIE/RFC/2068/197.htm
php examples and explanations:
http://php.net/header
An very nice httpdownload class that supports resume:
http://www.phpclasses.org/browse/package/2221.html"

But, that's for PHP.

I hope this helps...Please let me know if resuming downloads is possible.

Thank you!

-Dee Dreslough
dee@sportsmogul.com
www.sportsmogul.com
DDreslough
 
Posts: 16
Joined: Mon Feb 11, 2008 8:28 am

Return to User Forum

Who is online

Users browsing this forum: No registered users and 127 guests