4

I'm trying to migrate my script from wget to curl.

wget -c --tries=0 --read-timeout=20 [URL]

What's the curl equivalent of this?

More specifically: what is the curl equivalent of --read-timeout=X ?

1 Answer 1

3

There is no direct equivalent to a read timeout, but you might get a similar effect by setting a minimum speed limit, eg less than 1 byte/sec for 20 seconds:

--speed-limit 1 --speed-time 20

For infinite retries use --retry 999 and to continue a download use -C -.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .