Is long polling allowed on php curl? How can I make a long polling request? I am currently using ajax to call a php file which makes a get call, but I want to do long polling is there anything I could do?
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://testcURL.com/?item1=value&item2=value2',
CURLOPT_USERAGENT => 'Codular Sample cURL Request'
));
$resp = curl_exec($curl);
How can I modify for long polling? I am new to this so any help is appreciated