Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating my webscraping program from VB6

Status
Not open for further replies.

DeGeneral

IS-IT--Management
Jul 4, 2003
12
GB
I have an old VB6 program in which I log in to a website via a vb6 webbrowser object and then scrape the data that I need (up-to-date prices) using an MSINET control. I run this once a day and the VB6 version works fine.

I have tried to update this program to VB.NET but I find that when I log in to the Webbrowser, the WebClient/HttpWebRequest object in unable to access data that requires the user to be logged in. It appears that VB.NET's Webbrowser object and its WebClient/HttpWebRequest objects are unconnected to each other. Does anyone know of a way of enabling WebClient/HttpWebRequest to transmit the username and password directly, or of connecting the VB.NET webbrowser to WebClient/HttpWebRequest in the way that VB6's webbrowser was connected to MSINET?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top