|
本帖最后由 火韦 于 2013-10-23 11:22 编辑
提交后的结果是 收货人信息: | ?????? ?????? ???é?¨??? ????????? ????????? ???é?¨??? ????????? ???é?¨è???????????????????·è·?2??·???C??§3??????é?¨???è???§????361005
|
string postdate = "awardId=" + id + "";
postdate += "&exchange.email=343434@qq.com";
postdate += "&exchange.num=1";
postdate += "&exchange.postAddress=" + System.Web.HttpUtility.UrlEncode("福建 厦门市 思明区 福建省 厦门市 思明区", Encoding.GetEncoding("utf-8")) + "";
postdate += "&exchange.postCode=361005";
postdate += "&exchange.receiver=" + System.Web.HttpUtility.UrlEncode("李多", Encoding.GetEncoding("utf-8")) + "";
postdate += "&exchange.remark=";
postdate += "&exchange.telephone=138654353";
item = new HttpItem()
{
URL = "http://union.baidu.com/client/cent/exchange!doExchange.action?" + postdate + "",//URL 必需项
Method = "get",//URL 可选项 默认为Get
Referer = "http://union.baidu.com/client/",//来源URL 可选项
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",// 可选项有默认值
UserAgent = "User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1",//用户的浏览器类型,版本,操作系统 可选项有默认值
ContentType = "application/x-www-form-urlencoded",
Cookie = cookie
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
有啥办法可以解决中文问题吗
|
|