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?
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?