Please see the codes below :
string getData = "";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("A Web Site");
req.Method = "GET";
req.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0";
req.ContentType = "text/html; charset=utf-8";
req.Referer = "That Web Site Referer";
req.KeepAlive = true;
req.CookieContainer = cookieJar;
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
Stream Stream = res.GetResponseStream();
StreamReader reader = new StreamReader(Stream);
string reader_str = reader.ReadToEnd();
After running these codes we have a source web page string in reader_str.
how can i click on a link(with specific id) in reader_str & get that click responce again like upper codes?
should i use webBrowser or HtmlAgilityPack?
would you please show me the fastest way!
EDIT :
That link is not in access. There is an image with a javascript function(onclick of that image). after click on that image that js fn makes an url and couses postback. i should click on that image...
thanks in advance