Get webpage source?
-
How could I retrive page source from a given website/url ?? Do I need to write HTTPrequest in order to do this or is there any other ways?? I need the page source in order to find out what is the likely content of that page and then uses this information to make an application to seach for website of similar content of in a different languages.
-
How could I retrive page source from a given website/url ?? Do I need to write HTTPrequest in order to do this or is there any other ways?? I need the page source in order to find out what is the likely content of that page and then uses this information to make an application to seach for website of similar content of in a different languages.
-
How could I retrive page source from a given website/url ?? Do I need to write HTTPrequest in order to do this or is there any other ways?? I need the page source in order to find out what is the likely content of that page and then uses this information to make an application to seach for website of similar content of in a different languages.
Try this
WebRequest req = HttpWebRequest.Create("http://www.codeproject.come"); String source = req.GetResponse().GetResponseStream().ReadToEnd();
Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^] -
How could I retrive page source from a given website/url ?? Do I need to write HTTPrequest in order to do this or is there any other ways?? I need the page source in order to find out what is the likely content of that page and then uses this information to make an application to seach for website of similar content of in a different languages.
It works, thanks you very much For anyone who is interested http://www.c-sharpcorner.com/Internet/WebRequestNResponseMDB.asp is a good tutorial of how to use webRequest.