Hi friends,
i am using httpwebrequest class to get response from a website. my code working fine in development machine.
But when i uploaded it to web hosting server then it return 403 forbidden error.
i cant debug the code. any body have any answer. my code as follows
CookieContainer objContainer = new CookieContainer();
Stream dataStream = null;
StreamReader reader = null;
string strServerResponse = "";
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("https://www.tdscpc.gov.in/app/login.xhtml");
//-------------------------------------
// request.CookieContainer = objContainer;
request.KeepAlive = false;
request.Method = "GET";
// request.UseDefaultCredentials = true;
// request.Proxy.Credentials = ...
Go to the complete details ...