PHP Curl output buffer not receiving response

后端 未结 1 686
情书的邮戳
情书的邮戳 2021-01-17 03:02

I have a deal where file1.php curl runs file2.php. file2.php is a long running file, but it sends(or is supposed to send) a response back to file1.php then carry on with it\

相关标签:
1条回答
  • 2021-01-17 03:47

    In a normal curl transfer you wouldn't be able to get the data until the page has completed loading ie. your script is finished. If you want to work with partial data, you should look at CURLOPT_WRITEFUNCTION . This creates a callback which you can use whenever any data is available.

    0 讨论(0)
提交回复
热议问题