|
本帖最后由 爱笑的眼睛 于 2013-4-5 19:41 编辑
- //为什么总是返回 ec:4 param error
- //是不是要将cookie中的path domain去掉啊
- //麻烦飞哥帮忙一下咯
- //城市返回的COOKIE
- string cookie = help1.GetHtml(item1).Cookie;
- //richTextBox1.Text = cookie;
- [code=csharp] //城市返回的COOKIE
- string cookie = help1.GetHtml(item1).Cookie;
- //richTextBox1.Text = cookie;
-
- //return;
- //构建请求对象
- HttpHelper help = new HttpHelper();
- HttpItem item = new HttpItem()
- {
- UseDefaultCredentials = true,
- Referer = "http://zc.qq.com/chs/index.html",
复制代码 //return;
//构建请求对象
HttpHelper help = new HttpHelper();
HttpItem item = new HttpItem()
{
UseDefaultCredentials = true,
Referer = "http://zc.qq.com/chs/index.html",
Accept = "*/*",
ProxyIp = null,
Method = "POST",
PostDataType = PostDataType.String,
URL = "http://zc.qq.com/cgi-bin/chs/numreg/get_acc?r=0.435126976976160" + new Random().Next(9),
//
Cookie = "zc_uid=1365072616_778548773;wdl=2f4c6ae93d40a669f9b0482cd9a9e1937001851044bbd742; uoc=5-0-9-0-9-0-5-28; index_ec=2; ptisp=cnc; ac=1,030,001; pt2gguin=o2593357027; RK=qAR+8Yk+UD; pgv_pvid=5463418106; pgv_pvi=6525243392; ptui_loginuin=1061376153; uin_cookie=360468522; euin_cookie=EC0D71D9194F1CDA735EE833B5E6D8C24E2F181956488674; ruv=5019894875796; __hash__=f5b0d08c97fe34bae0cc686c7f03f89f;" + cookie + pimage.Cookie,//验证码COOKIE
Postdata = "&verifycode=" + txtVCode.Text.Trim().ToLower()
+ "&qzone_flag=0"// + (checkBox1.Checked ? "1" : "0")
+ "&country=1&province=44&city=4&isnongli=0&year=1995&month=4&day=4&isrunyue=0"
+ "&password=" + pwd
+ "&nick=" + txtNick.Text.Trim()
+ "&email=false&other_email=false&elevel=1&sex=1&qzdate=&csloginstatus=1&g8q9i9=k2q2&jumpfrom=58030"
};
System.Web.HttpCookie c = new System.Web.HttpCookie("s");
c.Value = item.Cookie;
c.Path = "";
c.Domain = "";
richTextBox1.Text = c.Value;[/code]
|
|