|
|
1金钱
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://fmail.21cn.com/freeinterface/jsp/register/reg_moblie.htm",//注册邮箱地址
Method = "get",
Cookie = this.Cookie,
ContentType = "application/x-www-form-urlencoded",
//ContentType = "text/html",
};
HttpResult result = http.GetHtml(item);
string retMsg = result.Html;
this.Cookie = result.Cookie;
如上代码所示,this.Cookie 为空,若将URL改为"http://reg.email.163.com/unireg/call.do?cmd=register.entrance&from=163mail"则可以获取Cookie。这是怎么回事,上述代码该如何获取Cookie ?
|
|