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 0, and immediately closing the http request if that gave the proper result
but I was wondering if there was something about the server response for a different kind of probe that would reveal this information to me
Adding to @aadel's answer:
Most of the servers nowadays respond with
Accept-Ranges: bytes
header in case they support resuming. RequestMaker or Insomnia can help you in examining request/response headers.To probe the download resume feature of a server, you may send a HEAD request to the server supplying a Range header with arbitrary values. If the response code is 206, then resume is supported.
Example with curl:
$ curl -i -X HEAD --header "Range: bytes=50-100" http://mirrors.melbourne.co.uk/ubuntu-releases//raring/ubuntu-13.04-desktop-amd64.iso
Update:
Here's an example in Java:
However, I haven't tested it mysqlf.