WebClient 403 Forbidden

后端 未结 8 1624
失恋的感觉
失恋的感觉 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 11:01

    This is what happened with me:

    I was trying to download a (public) .xls file (via DownloadFile method) which was getting downloaded comfortably from all browsers.

    After trying and struggling with all answers (but no luck), I finally opened the Stack and noticed something odd (refer screenshot).

    Although, the file was getting downloaded via http in browser but it was giving 403 error via DownloadFile method.

    Finally, I just changed the URL from http://something to https://something and it worked fine.

    Hope this helps!

提交回复
热议问题