I need to grab a text file stored on a website. This is my code:
This works with a windows form but not a web form. What am I doing wrong?
Code:
InvValue = "[URL unfurl="true"]http://jumpgate.mightygames.com/database/inventory/inventory.txt"[/URL]
Username = "Username"
Password = "Pswd"
myWebRequest = WebRequest.Create(InvValue)
myProxy = CType(myWebRequest.Proxy, WebProxy)
myProxy.Credentials = New NetworkCredential(Username, Password) [COLOR=green]'Proxy details[/color]
myStream = myClient.OpenRead(InvValue)