Lcf.vs
Lcf.vs

Reputation: 1842

Force download as ranges

I'm trying to force a file download, in PHP, as ranges, but the browser doesn't call the next ranges.

I surely miss something but I don't know what, any idea, please ?

My related headers :

HTTP/1.1 206 Partial Content
Accept-Ranges: bytes
Connection: Keep-Alive
Content-Disposition: attachment; filename="filename.mp3"
Content-Length: 524288
Content-Range: bytes 0-524287/9289186
Content-Type: application/octet-stream
Expires: -1
Keep-Alive: timeout=5, max=100

EDIT:

When I download it by curl, with a -C -, I got the entire file if run this many times.

curl [url] -o filename.mp3 -C - 

But if I call this, I got only the first 512Ko and curl doesn't call the rest

curl [url] -o filename.mp3

Upvotes: 2

Views: 336

Answers (0)

Related Questions