Fork me on GitHub
摘要: WebClient:http://msdn.microsoft.com/zh-cn/library/system.net.webclient(v=VS.80).aspx(MSDN)代码:string postString = "arg1=a&arg2=b";//这里即为传递的参数,可以用工具抓包分析,也可以自己分析,主要是form里面每一个name都要加进来 byte[] postData = Encoding.UTF8.GetBytes(postString);//编码,尤其是汉字,事先要看下抓取网页的编码方式 string url = "http:// 阅读全文
posted @ 2011-12-05 09:15 磊哥|www.javacn.site 阅读(9057) 评论(2) 推荐(3) 编辑