|
楼主 |
发表于 2013-6-13 12:26:14
|
显示全部楼层
代码附上- HttpHelper http = new HttpHelper();
- HttpItem httpItem = new HttpItem()
- {
- URL = "http://captcha.qq.com/getimage?aid=549000912&uin="+"421826878"+"&0."+取随机数X(17),
- Accept = "image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5",
- Encoding = null,//编码格式(utf-8,gb2312,gbk) 可选项 默认类会自动识别
- //Encoding = Encoding.Default,
- Method = "get",//URL 可选项 默认为Get
- ResultType = ResultType.Byte
- };
- //得到HTML代码
- HttpResult result = http.GetHtml(httpItem);
- cookies = result.Cookie;
- Image image = byteArrayToImage(result.ResultByte);
- pb_YZM.Image = image;
- return;
复制代码 |
|