|
Console.WriteLine(postData);
HttpItem hi = new HttpItem();
hi.URL = PublicSource.URL + "/L_Confirm_Jeu.aspx";
hi.Method = "POST";
hi.Postdata = postData;
hi.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36";
hi.ContentType = "application/x-www-form-urlencoded";
hi.Cookie = Command.GetCookies(PublicSource.URL);
string res = hh.GetHtml(hi).Html;
Console.WriteLine(res);
if (res == null) { Console.WriteLine("超时,重投"); return TouZhu(postData); }
if (res.Contains("parent.topFrame.Show_Confirm_Jeu"))
{
return true;
}
else if (res.Contains("重復"))
{
return true;
}
else
{
LogManager.WriteLog(LogFile.Error, postData);
LogManager.WriteLog(LogFile.Error, "返回:" + res);
return false;
}
返回<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://hh1.xx777-qas.5781nn.com/error.htm">here</a>.</h2>
</body></html> 。请问是什么问题造成的,有时候有,有时候正常。苏飞大神遇到过没。
|
|