determine if server supports resume get request

前端 未结 3 1844
忘了有多久
忘了有多久 2021-01-30 17:54

How does one determine if a server supports resuming a file transfer or get request?

My thoughts were to set the header to start the get request at byte \"2\" instead of

3条回答
  •  伪装坚强ぢ
    2021-01-30 18:25

    You can test it out, starting, stopping, then restarting a download:

    curl --continue-at - http://... >> file.out
    

    For whatever reason, this (from another answer) gave me a 403:

    curl -i -X HEAD --header "Range: bytes=50-100" http://...
    

提交回复
热议问题