Guest User

Untitled

a guest
Feb 20th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. [code]
  2. WebRequest request = WebRequest.Create("URL");
  3. WebResponse response = request.GetResponse();
  4. Stream data = response.GetResponseStream();
  5. string html = String.Empty;
  6. using (StreamReader sr = new StreamReader(data))
  7. {
  8.     html = sr.ReadToEnd();
  9. }
  10. [/code]
Advertisement
Add Comment
Please, Sign In to add comment