请问 大侠 关于 bux站点 验证码图片 下载不对的问题
http://www.buxproof.com 这个网站 登陆时候的验证码 点击出来4 个字符,我想把这个图片 搞下来 ,结果老失败引用到的 命名空间 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;
using tessnet2;
using AForge.Imaging;
using AForge.Imaging.Filters;
using Winista.Text.HtmlParser.Lex;
using System.Text.RegularExpressions;
-----------------------------------------
按钮事件 :
Bitmap bitmap = null;
Bitmap image = null;
string input = string.Empty;
string ValidateCodeUrl = "http://www.jiayuan.com/antispam_v2.php?hash=";//对比一下!这个链接的图片下载成功
string ValidateCodeUrl2 = "http://www.buxproof.com/pages/captcha?t=s&s=standard&h=284801445";//这个下载失败
HttpWebResponse resp;
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(ValidateCodeUrl);
resp = (HttpWebResponse)req.GetResponse();
bitmap = new System.Drawing.Bitmap(resp.GetResponseStream());
this.pictureBox1.Image = bitmap;
HttpWebResponse resp2;
HttpWebRequest req2 = (HttpWebRequest)HttpWebRequest.Create(ValidateCodeUrl2);
resp2 = (HttpWebResponse)req2.GetResponse();
bitmap2 = new System.Drawing.Bitmap(resp2.GetResponseStream());
this.pictureBox2.Image = bitmap2;
--------------------编程问答-------------------- http://www.red-alertbux.com/pages/captcha?t=s&s=standard&h=439508533 这个网站相同道理,他们都是一个模板的
补充:.NET技术 , .NET技术前瞻