When does an actual download happen with HTTP library?

Inman

Well-Known Member
Licensed User
Longtime User
When you call httpclient1.Execute(request, 5000), you are taken to either HttpClient1_ResponseSuccess or Httpclient1_ResponseError events. Now when HttpClient1_ResponseSuccess is raised, has the file already been downloaded or does the download happen when you call Response.GetAsynchronously?

I want to check if a set of links are missing (i.e. if it is returning 404 errors). So if I use httpclient1.Execute, will all the files be downloaded, before calling Response.GetAsynchronously? If yes, will it be possible to avoid that and check for the status from the header alone or something to avoid wastage of user's bandwidth?
 

Inman

Well-Known Member
Licensed User
Longtime User
Awesome! So I can just check Httpclient1_ResponseError and see if the StatusCode=404 to check for missing links.
 
Upvote 0
Top