|
1金钱
飞哥,帮个忙呀,现在京东登陆后,将商品加入购物了,但是加入购物车的 配送地址 默认为 北京市朝阳区三环以内,怎样才能将配送地址 加入购物车的时候变为 自己账号的默认地区的地址呢?
我抓包看了下cookie, 后面好像要加点参数,但是我把cookie 更改后还是不行
HttpItemObj.URL = string.Format("http://gate.jd.com/InitCart.aspx?pid={0}&pcount=1&ptype=1", txtProductId.Text.Trim());
HttpItemObj.Method = "GET";
HttpItemObj.Accept = "*/*";
HttpItemObj.Header.Add("Accept-Encoding", "gzip, deflate");
HttpItemObj.Referer = string.Format("http://item.jd.com/{0}.html", txtProductId.Text.Trim());
HttpItemObj.UserAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)";
HttpItemObj.Cookie = cookies;
//这里就是地区的参数,加入cookies地区还是北京的
//";ipLoc-djd=12-911-23690-0; ipLocation=江苏; areaId=12; user-key='"+ uuid +"'; cn=0";
HttpResultObj = HttpHelperObj.GetHtml(HttpItemObj);
this.txtLoginResult.Text = HttpResultObj.Html; //返回加入购物车成功
|
|