Alex Rivera | Logout

Checking Download size before download

Asked 2009-03-18T11:14:15.107
16

I need some way to check the size of a download without having to download the entire file. I am using C# and the System.Net.WebClient to do the downloads.The check needs to run in a asp.net webservice.

Thanks

Edit
Report

1 Answer

-1

You can also use the HTTP RANGE header to download only the stuff you want.

It would be really simple to build a HttpRangeStream that supports seek and read on a remote HTTP resource, if the remote server is HTTP 1.1 and correctly supports RANGE headers.

answered 2009-03-23T06:42:59.610

Your Answer