I'm writing a console utility to download specific files from web sites. The problem I'm running into is that some web admins have taken it upon themselves to not return a 404 error of the URI of the file is incorrect. Instead they redirect the request to another page on the site to provide some instruction, and that page is then downloaded by my utility. I need to be able to only accept absolute responses and want to filter out redirected content.
Is there a method to detect when the response from a WebRequest or WebClient.Download file does not originate from the URI queried?
Any help would be much appreciated.
- Glen
Is there a method to detect when the response from a WebRequest or WebClient.Download file does not originate from the URI queried?
Any help would be much appreciated.
- Glen