Tejinder Singh

Tejinder Singh

  • NA
  • 93
  • 2.2k

i need to hit below url in c# and get data from info tab

Oct 3 2014 10:33 AM
Hi

I need to hit below URL in c# and get data from info tab. but every time i hits it is going to profile tab please help

Thanks in advance

http://trendstop.knack.be/en/detail/866701631/cleaning+company.aspx

Here is my code

HttpWebRequest HttpWebRequest = (HttpWebRequest)WebRequest.Create(loginUrl);
                HttpWebRequest.Accept = "text/html, application/xhtml+xml, */*";
                HttpWebRequest.Method = "GET";
                HttpWebRequest.KeepAlive = true;
                HttpWebRequest.AutomaticDecompression = DecompressionMethods.GZip;
                HttpWebRequest.Host = "trendstop.knack.be";
                HttpWebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
               
                HttpWebRequest.AllowAutoRedirect = true;


                HttpWebResponse HttpWebResponse = (HttpWebResponse)HttpWebRequest.GetResponse();

Answers (2)