System.Net.WebClient request gets 403 Forbidden but browsers do not with Apache servers

前端 未结 4 950
日久生厌
日久生厌 2020-12-11 19:24

An odd one, I\'m trying to read the section of a lot of different websites out there, and one particular type of server, Apache, sometimes gives the code 403 fo

4条回答
  •  春和景丽
    2020-12-11 20:00

    It could be a matter of the UserAgent header, as "thedugas" said, or in fact anything the browser is silently configured to do. For instance, it could be a matter of not using a proxy server that the browser is using, or not using the correct credentials for the proxy server. These are things that may already be configured into the browser, so you're not aware they need to be done.

提交回复
热议问题