If you type directly this address
http://www.parkoz.com/zboard/login_c...to_login=false
into your browsers (IE or Opera) and press enter, it shows a page
anyway.
But in the following code, just throws a time-out exception.
I think the server is checking the client somehow, and decided that my
application is not a normal web browser. Some sites seem to check
referer string, but in this case, I disabled referer and cookie in
Opera, but it was still displayed in Opera.
Do you have any idea?
HttpWebRequest req=(HttpWebRequest)
HttpWebRequest.Create("http://www.parkoz.com/zboard/login_check.php?user_id=xxx&password=xxxx&auto_log in=false");
req.CookieContainer=new CookieContainer();
req.UserAgent="Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)";
req.Timeout=2000;
req.Referer="http://www.parkoz.com";
req.KeepAlive=true;
WebResponse res;
res=req.GetResponse();
StreamReader sr=new StreamReader
(res.GetResponseStream(),System.Text.Encoding.Defa ult);
string temp=sr.ReadLine();
sr.Close();
res.Close();
System.Diagnostics.Debug.Write(temp);