Access a secured website programmatically

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
B

Bill Nguyen

I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

Bill
 
I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

Bill

Bill,

If your using the WebClient class, try setting the WebClient instances
credentials property...

Dim wc As New WebClient
wc.Credentials = New NetworkCredentials("UserName", "Password")

HTH,
Tom Shelton
 
Arnold;
Here's what I got!

I can login, however, I can't get the data I need.
The site is running ASP app, and it will display a page with the content I
would like to capture . I can "View Source" and see the data are embedded in
the HTML tags, but don't know how to get it. How can you read/download data
in the page?

Thanks a million!

Bill
--------------

(This is the bottom portion of the page)
Jaco Oil Co. Unleaded $2.3552 6/11/2007 0.03

Jaco Oil Co. Plus $2.4352 6/11/2007 0.03

Jaco Oil Co. Supreme $2.5152 6/11/2007 0.03

Jaco Oil Co. Diesel #2 $2.359 6/11/2007 0.02
 
Bill Nguyen said:
Arnold;
Here's what I got!

I can login, however, I can't get the data I need.
The site is running ASP app, and it will display a page with the content I
would like to capture . I can "View Source" and see the data are embedded
in the HTML tags, but don't know how to get it. How can you read/download
data in the page?
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=339&lngWId=10#zip


(This is the bottom portion of the page)
Jaco Oil Co. Unleaded $2.3552 6/11/2007 0.03

Jaco Oil Co. Plus $2.4352 6/11/2007 0.03

Jaco Oil Co. Supreme $2.5152 6/11/2007 0.03

Jaco Oil Co. Diesel #2 $2.359 6/11/2007 0.02
 
Back
Top