我先登录了https,然后拿出里面的html。然后分析img,结果到
WebClient wc = new WebClient();
wc.DownloadFile(new Uri(imgurlAry[i]), p);
在这里没有信任度,失败了。请问怎么给WebClient加上我前面的
CookieContainer cookieContainer = new CookieContainer();这个对像?
WebClient wc = new WebClient();
wc.DownloadFile(new Uri(imgurlAry[i]), p);
在这里没有信任度,失败了。请问怎么给WebClient加上我前面的
CookieContainer cookieContainer = new CookieContainer();这个对像?
用WebClient.DownloadFile 注意 ASP.NET 对文件的写访问权限就好了