http://scholar.google.com/scholar.ris?q=info:j8ymU9rzMsEJ:scholar.google.com/&output=citation&hl=zh-CN&as_sdt=2000&oe=GB&ct=citation&cd=0http://scholar.google.com/scholar.ris?q=info:j8ymU9rzMsEJ:scholar.google.com/&output=citation&hl=zh-CN&as_sdt=2000&oe=GB&ct=citation&cd=0手工地址可以下载但是使用
            WebClient client = new WebClient();
            client.DownloadFile(address, filename);显示403被禁止咋的办?
谢谢

解决方案 »

  1.   

    WebClient client = new WebClient();
    client.Headers.Add(HttpRequestHeader.Referer, "");
    client.DownloadFile("", "");
      

  2.   

    显然有的下载要验证信息的啊,否则岂不是网上的东西随你down了啊。
      

  3.   

    找个sniffer pro之类抓一下包,看看期间有哪些信息交互
      

  4.   


    这次没有错误返回了(IE中)但是代码还是System.Net.WebException: The remote server returned an error: (403) Forbidden