WebClient 403 Forbidden

后端 未结 8 1635
失恋的感觉
失恋的感觉 2020-12-17 10:30

I can download this by hand in IE.

http://scholar.google.com/scholar.ris?q=info:j8ymU9rzMsEJ:scholar.google.com/&output=citation&hl=zh-CN&as_sdt=2000&

8条回答
  •  孤城傲影
    2020-12-17 10:49

    The key to solving this for me was to do the request once via code, a second time in the browser, log both requests with Fiddler and ensure the headers match up.

    I ended up having to add headers for:

    • Accept
    • Accept-Encoding
    • Accept-Language
    • User-Agent
    • Upgrade-Insecure-Requests

    I hope this helps people in the future.

提交回复
热议问题