|
楼主 |
发表于 2015-1-25 14:28:12
|
显示全部楼层
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://www.harcw.cn/Page/Default.aspx",
Method = "get",
IsToLower = false,
Cookie = "AJSTAT_ok_times=3; AJSTAT_ok_pages=9; ASP.NET_SessionId=jp0nz2ynxbhcn1xak0q1bozu",
Referer = "",
Postdata = "",
Timeout = 10000,
ReadWriteTimeout = 10000,
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",//用户的浏览器类型,版本,操作系统 可选项有默认值
ContentType = "image/jpeg",
Allowautoredirect = false,//是否根据301跳转
//CerPath = "d:\123.cer",//证书绝对路径 可选项不需要证书时可以不写这个参数
//Connectionlimit = 1024,
ProxyIp = "",//代理服务器ID 可选项 不需要代理 时可以不设置这三个参数
//ProxyPwd = "123456",
//ProxyUserName = "administrator",
ResultType = ResultType.Byte
};
result1 = http.GetHtml(item);
Image img = byteArrayToImage(result1.ResultByte);
pictureBox1.Image = img;
请问是按这样的思路做吗? 事先要先获取到图片吧 可是抓包没看到验证码的图片
谢谢苏飞大哥~
|
|