|
5金钱
验证码图片正常获取,但报一个这个异常:在 System.ArgumentException 中第一次偶然出现的“mscorlib.dll”类型的异常
代码测试:public byte[] getImage()
{
item = new HttpItem()
{
URL = "http://ka.game.163.com/service/cardsvc/captcha?var=38955772867168303",
Method = "GET",
Accept = "image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5",
Encoding = null,
ContentType = "application/x-www-form-urlencoded",
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
ResultType = ResultType.Byte,
};
HttpResult result = http.GetHtml(item);
return result.ResultByte;
}
|
|