/ Published in: C#

Returns the entire markup making up the specified webpage.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public string getHtml(string url) { HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url); myRequest.Method = "GET"; WebResponse myResponse = myRequest.GetResponse(); string result = sr.ReadToEnd(); sr.Close(); myResponse.Close(); return result; }
Comments
