Link to home
Start Free TrialLog in
Avatar of DColin
DColinFlag for Thailand

asked on

Download websites source

Hi Experts,

I am downloading a website's source text into a string using the following code.

Dim sourceString As String = New System.Net.WebClient().DownloadString("website.com")

The problem I am having is that the downloaded text assumes I have not logged in. When I load the site from my browser the site assumes I am logged in via a stored cookie I presume. How can I present the cookie before downloading the source text?
Avatar of Karunamoorthy Periyasamy
Karunamoorthy Periyasamy
Flag of India image

>>"website.com"
show the actual site instead. I will try it for you.
Avatar of DColin

ASKER

ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial