Access secure website

  • Thread starter Thread starter Sean Walsh
  • Start date Start date
S

Sean Walsh

I want to perform the following manual steps
programatically.

1) I go to a secure website (https://secure.xxx.yyy)
where I am prompted for a user name and password with
windows authorization dialog.

2) After I enter my user name and password, I am taken
to a 'Do you agree' webpage that requires I click an 'I
agree' submit button.

3) I am then taken to a report criteria web page, where
I can select criteria, press submit, and am then taken to
a webpage that displays my report (that I will eventually
need to scrape).

I have seen that I need to use webrequest and webresponse
with networkcredentials in order to login to the web
page. However, I cannot figure out how to use these
objects to 'navigate' past the 'Do you agree' page and
ultimately post criteria data to the report page.

Thanks for any help - sample code greatly appreciated.
 
Hi, Sean

I can give you some help with the pieces.

165298 HOWTO: Simulate a Form POST Request Using WinInet
http://support.microsoft.com/?id=165298

168151 HOWTO: Make SSL Requests Using WinInet
http://support.microsoft.com/?id=168151

and for handling Authentication check out

http://msdn.microsoft.com/library/en-us/wininet/wininet/handling_authenticat
ion.asp?frame=true

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
"Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security."
--------------------
| Content-Class: urn:content-classes:message
| From: "Sean Walsh" <[email protected]>
| Sender: "Sean Walsh" <[email protected]>
| Subject: Access secure website
| Date: Fri, 19 Sep 2003 11:32:02 -0700
| Lines: 23
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcN+3FG0yfJvcWfyR4+po7KAoyTfPQ==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109215
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I want to perform the following manual steps
| programatically.
|
| 1) I go to a secure website (https://secure.xxx.yyy)
| where I am prompted for a user name and password with
| windows authorization dialog.
|
| 2) After I enter my user name and password, I am taken
| to a 'Do you agree' webpage that requires I click an 'I
| agree' submit button.
|
| 3) I am then taken to a report criteria web page, where
| I can select criteria, press submit, and am then taken to
| a webpage that displays my report (that I will eventually
| need to scrape).
|
| I have seen that I need to use webrequest and webresponse
| with networkcredentials in order to login to the web
| page. However, I cannot figure out how to use these
| objects to 'navigate' past the 'Do you agree' page and
| ultimately post criteria data to the report page.
|
| Thanks for any help - sample code greatly appreciated.
|
 
John,

Thanks for the response. I have looked at the articles and they are
helpful. Do you have any articles/examples for VB 6 or VB.NET?

Thanks,
Sean Walsh
 
Hi, Sean

I'm afraid not. If you have specific questions, I can try to address them.

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
"Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security."
 
Back
Top