HttpClient Request like browser

前端 未结 4 939
自闭症患者
自闭症患者 2020-12-04 14:59

When I calling site www.livescore.com by HttpClient class I always getting error \"500\". Probably server blocked request from HttpClients.

1)There is any other meth

4条回答
  •  萌比男神i
    2020-12-04 15:09

    I think you can be pretty certain that they have done everything to stop developers from screen-scraping.

    If I try from a standard C# project using this code :

      var request = WebRequest.Create("http://www.livescore.com ");
      var response = request.GetResponse();
    

    I get this response:

    The remote server returned an error: (403) Forbidden.
    

提交回复
热议问题