A site we use to get data files from has recently change how their security works and my window program no longer works. Before I was able to use the IE web browser plug-in to login and navigate to the download page. I would collect all of the links and then download the files using the WebClient and DownloadFileAsync Method. The problem is that with the security change the file doesn't download it is instead redirected to the login page. I've tried multiple ways to send the username/password information, but nothing happens.
When searching the net I've found a few people have had similar problems, but no one generally answers. The few times they did they simply said to use HttpWebRequest. The problem with this is the two are designed differently so I would either have to make a whole new class base around the HttpWebRequest or totally remake my program because of the differences in the two.
I've tried setting the Credentials as well as trying to login using the UploadValues method when the WebClient hits the page and neither works. Is there any way to get the current way to work with the WebClient? I really don't see any benefit to using the HttpWebRequest for what I'm doing nor does anyone give any explanation why some one should use the other way when they suggest it. Oh, in case it makes a difference the login is a PHP page, but the download links are done as ASP pages.
-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
When searching the net I've found a few people have had similar problems, but no one generally answers. The few times they did they simply said to use HttpWebRequest. The problem with this is the two are designed differently so I would either have to make a whole new class base around the HttpWebRequest or totally remake my program because of the differences in the two.
I've tried setting the Credentials as well as trying to login using the UploadValues method when the WebClient hits the page and neither works. Is there any way to get the current way to work with the WebClient? I really don't see any benefit to using the HttpWebRequest for what I'm doing nor does anyone give any explanation why some one should use the other way when they suggest it. Oh, in case it makes a difference the login is a PHP page, but the download links are done as ASP pages.
-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!