In my asp .net project, my main page receives URL as a parameter I need to download internally and then process it. I know that I can use WebClient\'s DownloadFile method ho
var webClient = new WebClient(); client.OpenRead(url); Int64 bytesTotal = Convert.ToInt64(client.ResponseHeaders["Content-Length"]);
Then you decide if bytesTotal is within the limit
bytesTotal