add namespace
using System.Net;
using System.IO;
code:
HttpWebRequest req = (HttpWebRequest) WebRequest. Create("http://www.rsmmukesh.blogspot.in/");
HttpWebResponse response = (HttpWebResponse)req.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string strSite = reader.ReadToEnd();
No comments:
Post a Comment