title: php curl long polling
body: <p>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?</p>
  
  <pre><code>$curl = curl_init();
  
  curl_setopt_array($curl, array(
  CURLOPT_RETURNTRANSFER =&gt; 1,
  CURLOPT_URL =&gt; 'http://testcURL.com/?item1=value&amp;item2=value2',
  CURLOPT_USERAGENT =&gt; 'Codular Sample cURL Request'
  ));
  
  $resp = curl_exec($curl);
  </code></pre>
  
  <p>How can I modify for long polling? I am new to this so any help is appreciated</p>