|
发表于 2013-3-6 13:06:59
|
显示全部楼层
admin 发表于 2013-3-6 12:43 
那个?
[code=csharp]if (!string.IsNullOrEmpty(objhttpItem.Postdata))
{
byte[] buffer = Encoding.Default.GetBytes(objhttpItem.Postdata);
request.ContentLength = buffer.Length;
request.GetRequestStream().Write(buffer, 0, buffer.Length);
}[/code]
飞哥,1.1与1.2中string postdata写入request的方式没变呀,想问你下如果把url跟截取的postdata分开写入httpitem,如何才能像人工拼接url(总不能每次都人工拼接吧,况且拼接的方式也不尽相同)那样成功访问呢···刚学这块,希望飞哥指点下···十分感谢
不考虑postdata被网站JS转化后发生到其他链接的情况(比如百度通行证)
就是这个问题 |
|