Setting Curl's Timeout in PHP

前端 未结 7 2104
你的背包
你的背包 2020-11-22 14:20

I\'m running a curl request on an eXist database through php. The dataset is very large, and as a result, the database consistently takes a long amount of time to return an

7条回答
  •  臣服心动
    2020-11-22 14:40

    You can't run the request from a browser, it will timeout waiting for the server running the CURL request to respond. The browser is probably timing out in 1-2 minutes, the default network timeout.

    You need to run it from the command line/terminal.

提交回复
热议问题