How can I figure out why cURL is hanging and unresponsive?

后端 未结 4 835
滥情空心
滥情空心 2021-01-04 00:32

I am trying to track down an issue with a cURL call in PHP. It works fine in our test environment, but not in our production environment. When I try to execute the cURL fu

4条回答
  •  悲哀的现实
    2021-01-04 01:36

    Have you tried setting CURLOPT_MAXREDIRS? I've found that sometimes there will be an 'infinite' redirect loop for some websites that a normal browser user doesn't see.

提交回复
热议问题