|
Hello Everyone,
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.
|
|
|
|
|
Impossible to say with the info you've given. You need to analyze the login page source code to see how the credentials are sent back to the server and how the actual page you want to access is authenticated. If its just a random SSL page, you just need to fill in the HTTPWebRequest.Credentials object.
|
|
|
|