I am trying to access a page which is secure behind a login system. I do have credentials, but I am trying to automate this as I have to download this page every month.
When I try to use HTTPWebRequest, it doesn't works. I tried to investigate this using Fiddler as well, and here is the log:
Protocol Host URL
HTTP TUNNEL to subdomain-x.site.com/needed-page.html <- My request
HTTP TUNNEL to subdomain-y.site.com
HTTPS subdomain-y.site.com some-url
What I am trying is:
1. Create Web Request
2. Create Cookie Container
3. Create Network Credentials
4. Create Headers
5. Get Response
However, this returns the Login Page itself. Any help will be highly appreciable.