/ Published in: VB.NET
Assigns the contents of a "url" to the string variable "result".
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string url = "http://www.translate-this.com/page.aspx"; HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url); myRequest.Method = "GET"; WebResponse myResponse = myRequest.GetResponse(); StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8); string result = sr.ReadToEnd();