Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 09, 2012 06:18 PM by Jiggr
Apr 08, 2012 06:48 PM|LINK
I have some problems, I must screen scrape a web page that is an aspx-site where the intresting data is the text in a gridview. I have no problem to get the text from the first page in the gridview.
But how do I get the text from the second page, the third page etc.
How do I simulate this?
This is the code I use to get a webpage for a specific URL:
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(strUrl);
request.Accept = "text/html, application/xhtml+xml, */*";
request.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
request.KeepAlive = true;
using (StreamReader streamReader = new StreamReader(request.GetResponse().GetResponseStream(), Encoding.UTF8, true))
Thanks in advance!
Apr 09, 2012 12:03 PM|LINK
No answer :(
I cant find information on this, maybe this is impossible?
Apr 09, 2012 06:18 PM|LINK
I have found a solution. Used the program Fiddler to be able to see exactly what happens when I clicked on the button. Then I tried to make a POST that looked so simular as the real call as possible.