日期:2014-05-17  浏览次数:20820 次

怎么和验证码同步cookie呢?

CookieContainer cookieCon1 = new CookieContainer();
webRequest.CookieContainer = cookieCon1;
webRequest.CookieContainer.Add(gCookieCollention);


一般提示失败,为什么呢?

我是获取DISCUZ的验证码
------解决方案--------------------
直接使用我的类就能完成,HttpHelper,里面有例子,你可以看一下,
C#HttpHelper类
你直接看里面的第四项