I have several files that needs to be downloaded from multiple sites. Each site has custom login pages. The absolute URL of the file is not there, instead a page needs to be called that throws the file as a stream to the response.
e.g a classic example of such sites is our own RAC. The URL is of the form:
[**[url removed, login to view]**]
(The 111111 is the actual identifier for the file and I have just typed it to show you how the URL looks). If you see the URL, this is not a direct path ot the file. If you type it on your browser you would see an error:
**This attachment is on a bid request that is private and you may not download it.
**I know I can use the WebClient coupled/not coupled with HttpWebRequest and HttpWebResponse to download the file. However, I dont know how to login, hold the session and then trigger the download file all in one go.
So the deliverables would be a [url removed, login to view] code which is tested on your own RAC account and downloads any one of your attachment as the zip file in a desired folder (No send keys solutions pls). In order to do this, I guess the script needs to login and then use the login session to download the file.
We will take RAC as the testing site for simplicity and I am sure that the code delivered will work for other sites too.
This is really urgent - $10 bonus for somebody who can deliver within 24 hours of bid accceptance.
Thx and look forward to hearing from? you soon.