我想下载
http://scholar.google.com/scholar.ris?q=info:sskrpr5jlLwJ:scholar.google.com/&output=citation&hl=zh-CN&as_sdt=2000&oe=GB&ct=citation&cd=1但是
WebClient client = new WebClient();
client.DownloadFile(address, filename);Show Exception: 403 Forbidden有人说要加东西
WebClient webClient = new WebClient();
webClient.Headers.Add("???", "???");
webClient.Headers.Add("???", "???");
webClient.Headers.Add("???", "???");
webClient.DownloadFile(address, filename);
但是我实在不知道加什么有人说desktopgooglereader.codeplex.com 解决了,
但是我不了家这个项目怎么做的实在没辙了,高人指点一下,如何才能下载
http://scholar.google.com/scholar.ris?q=info:sskrpr5jlLwJ:scholar.google.com/&output=citation&hl=zh-CN&as_sdt=2000&oe=GB&ct=citation&cd=1但是
WebClient client = new WebClient();
client.DownloadFile(address, filename);Show Exception: 403 Forbidden有人说要加东西
WebClient webClient = new WebClient();
webClient.Headers.Add("???", "???");
webClient.Headers.Add("???", "???");
webClient.Headers.Add("???", "???");
webClient.DownloadFile(address, filename);
但是我实在不知道加什么有人说desktopgooglereader.codeplex.com 解决了,
但是我不了家这个项目怎么做的实在没辙了,高人指点一下,如何才能下载
建议用httplook一类的抓包软件看看浏览器如何提交的。
client.Headers.Add(HttpRequestHeader.Referer, "");
client.DownloadFile("url", "fileName");
其他网站如何
同意,楼主,跟你写的代码没有关系!
你访问:
http://scholar.google.com/scholar.ris?q=info:sskrpr5jlLwJ:scholar.google.com/&output=citation&hl=zh-CN&as_sdt=2000&oe=GB&ct=citation&cd=1
就知道了,一样在浏览器中显示Forbidden!
各位高人,请问Fiddler是不是也是抓包的如何提交cookie呢?