Skip to content
Advertisement

Is it possible to get partial response using PHP cURL?

Here is my code

JavaScript

Partial_response.php

JavaScript

From the about code am trying to get a partial response from partial_response.php. what I want is, I need curl to return me “Job waiting..” alone instead of waiting for the partial_response.php to complete the loop and return the entire data. so when I reduce CURLOPT_TIMEOUT below 11 i dont get any response at all. Kindly clarify my doubt. Thanks in advance.

Advertisement

Answer

I later realized that cURL could not do what I want, I used stream_context_get_options to achieve what I wanted. Here it is, http://www.php.net/manual/en/function.stream-context-get-options.php.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement