|
nike官网登陆后,修改收货地址的网址是put提交,一直不成功,只好来论坛求教苏飞站长和各位高手朋友,帮小弟看看错在哪里。
代码如下:
string strPost = "{\"additionalPhoneNumber\":null,\"address1\":\"" + textBox_地址1.Text + "\",\"address2\":\"" + textBox_地址2.Text + "\",\"address3\":null,\"city\":\"" + comboBox_城市.SelectedItem + "\",\"country\":\"CN\",\"firstName\":\"" + textBox_名称.Text + "\",\"id\":\"21922455742\",\"lastName\":\"" + textBox_姓氏.Text + "\",\"name\":null,\"otherName\":null,\"phoneNumber\":\"" + textBox_电话号码.Text + "\",\"postalCode\":\"\",\"preferred\":true,\"state\":\"" + Data.fdicState[comboBox_省.SelectedItem.ToString()] + "\",\"type\":\"SHIPPING\",\"countyDistrict\":\"" + comboBox_区.SelectedItem + "\",\"alternateFirstName\":null,\"alternateLastName\":null}";
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://www.nike.com/profile/services/users/" + LoginID + "/addresses/" + AdressID,
Method = "PUT",
Postdata = strPost,
Cookie = AllCookie,//cookie是之前获取的
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
Referer = "https://www.nike.com/cn/zh_cn/s/profile#",
Host = "www.nike.com",
Accept = "application/json, text/javascript, */*; q=0.01",
KeepAlive = true,
ContentType = "application/json",
};
item.Header.Add("Authorization", "CPC");
item.Header.Add("X-Requested-With", "XMLHttpRequest");
HttpResult result = http.GetHtml(item);
string html = result.Html;
if (result.StatusCode == System.Net.HttpStatusCode.OK)
{
}
|
-
NIKE官网修改收货地址的抓包截图
-
-
8保存地址结束.rar
3.3 MB, 下载次数: 22, 下载积分: 金钱 -1
|