php - How to generate unique request in CURL -


i have 1 script fetch data using curl in multiple request @ same time same url.

is there configuration in curl each time sending new request ?

because second time when ever tried behave fake request using curl.

currently using configuration.

$ch = curl_init(); curl_setopt ( $ch, curlopt_url, $url ); curl_setopt ( $ch, curlopt_header, true); curl_setopt ( $ch, curlopt_httpauth, curlauth_any); curl_setopt ( $ch, curlopt_ssl_verifypeer, false);      curl_setopt ( $ch, curlopt_returntransfer, true); curl_setopt ( $ch, curlopt_binarytransfer, true); curl_setopt ( $ch, curlopt_timeout, 150); curl_setopt ( $ch, curlopt_followlocation, 1 );             curl_setopt ($ch, curlopt_connecttimeout, 30); $data = curl_exec($ch);  curl_close($ch); 

if 1 have suggestion please me.

thanks...

if want curl request create new curl object again.

$ch1 = curl_init(); $ch2 = curl_init(); ... curl_close($ch1); curl_close($ch2); 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -