Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resuming download does not work with curl #84

Open
msordi opened this issue Sep 29, 2021 · 0 comments
Open

Resuming download does not work with curl #84

msordi opened this issue Sep 29, 2021 · 0 comments

Comments

@msordi
Copy link

msordi commented Sep 29, 2021

NGINX_VERSION=1.18.0
MOD_ZIP_VERSION=1.2.0

First, i start downloading my zip file using :

curl http://mod_zip_descriptor --output example.zip

All files have theirs CRC32.

Response headers :

< HTTP/1.1 200 OK
< Server: nginx/1.18.0
< Date: Wed, 29 Sep 2021 11:29:35 GMT
< Content-Type: application/zip
< Content-Length: 913341606
< Connection: keep-alive
< Last-Modified: Tue, 28 Sep 2021 15:31:38 GMT
< ETag: "6153355a-1574"
< Content-Disposition: attachment; filename=example.zip
< Accept-Ranges: bytes
< Cache-Control: max-age=0

I stop the download during the process to test resuming.

Then i try to resume it using automatic range :

curl http://mod_zip_descriptor -C - --output example.zip

Server say me : "HTTP server doesn't seem to support byte ranges. Cannot resume."

I try resuming it "manually" :

curl http://mod_zip_descriptor -H "Range: bytes=462135296-" --output example.zip

It hangs ... and fails!

I try using If-header:

curl http://mod_zip_descriptor -H "Range: bytes=462135296-" -H "If-Range: 6153355a-1574" --output example.zip

Download succeeds but restarts from the beginning.

Could you tell me if I have done anything wrong?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant