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

Allow resuming transfers. Support byte ranges. #3449

Open
1 task done
barkoder opened this issue Mar 11, 2024 · 0 comments
Open
1 task done

Allow resuming transfers. Support byte ranges. #3449

barkoder opened this issue Mar 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@barkoder
Copy link

barkoder commented Mar 11, 2024

Official Instance

Describe the bug

Hi.

Don't know if I should file this under "bug report" or "feature request". So here it goes.

I used the API of the official instance to curl a video to my computer - http://pipedihonqyp5fh3ffn5c7i2zlg4lljc4gorefhpydtqiapewy5gprad.onion/streams/vWF3IDk9Gek

The transfer was interrupted 75% of the way through and I got this error

curl: (18) transfer closed with 427825322 bytes remaining to read .

To resume the transfer I used the curl continue flag -C - and I got

curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.

So I tried switching to several different instances. And it turns out that literally none of the available instances support byte ranges. So I can't resume an interruped transfer from any of them.

Is there a reason why this is the default? Is it possible to have all the API servers support byte ranges and allow resumption?

Thanks.

To Reproduce

  1. Fire up tor, not Tor Browser with the default settings.

  2. curl -s -x socks5h://127.0.0.1:9050 'http://pipedihonqyp5fh3ffn5c7i2zlg4lljc4gorefhpydtqiapewy5gprad.onion/streams/vWF3IDk9Gek' | jq

  3. Pick a large file format.

  4. curl -x socks5h://127.0.0.1:9050 -C - -R "hxxps :// FILE FORMAT THAT WAS PICKED AT STEP 2" -o file.webm to your computer.

  5. Transfer may get interrupted.

  6. If it does try the same command again, and make sure to not remove the -C - flag.

  7. HTTP server doesn't seem to support byte ranges. Cannot resume.

Expected behavior

Transfer should resume wherever it was left off.

Logs/Errors

No response

Browser, and OS with Version.

curl 8.6.0

Additional context

No response

@barkoder barkoder added the bug Something isn't working label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant