Extracting web page using ASP
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
hai all, I would like to extract a web page and save that into a text file format.. Can anyone help me with some ideas or sample codes..... thanks...
with Regards, Imthiyas Ahamed.A
Use HttpRequest and response object HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(URL); HttpWebResponse response = (HttpWebResponse)myHttpWebRequest.GetResponse(); resStream = response.GetResponseStream(); re = new StreamReader(resStream); Store the streamreader as you want you can also set cookies and Proxy in this aproach i think this might helpfull
Thanks and Regards Sandeep If you want something you never had, do something you have never done!