I'm writing some code in C# to download files from the web servers.
I'm testing with some links which support a 'byte-range' request, so not sure what would happen with unsupported servers.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("someUrl");
request.AddRange(someValue);
As you can see, nothing special. After getting the response from the server, it starts to download a file. I know servers that don't support byte ranges will return the status code 200 instead of 206. So, in that case, I'm curious if I have to retry without a byte range request again.
I hope I don't have to, because in some cases, such as google drive links, it takes too long for closing the response and getting another response. If a server doesn't support byte ranges, then I don't really mind downloading from the beginning. Does this happen automatically without coding?