PHP cURL how to add the User Agent value OR overcome the Servers blocking cURL requests?

前端 未结 4 1071
独厮守ぢ
独厮守ぢ 2020-12-05 10:54

I am transferring an Object Array. I have a cURL client (submitter) on own Server and listening script on other\'s Server, which one is not

4条回答
  •  不知归路
    2020-12-05 11:32

    Server cannot block only cURL requests because they are just HTTP requests. So changing User Agent of your cURL can solve your problem, as server will think you are connecting through browser presented in UA.

提交回复
热议问题