2
Answers

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

Tejinder Singh

Tejinder Singh

10y
852
1
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)
Next Recommended Forum