Jump to content
konkhra

Request-uri GET si POST folosind libraria RollingCurl

Recommended Posts

Posted

Avand codul php de mai jos as dori sa stiu cum pot face POST request, pentru cele 3 site-uri simultan, folosind variabilele parsate prin functia "my_request" ? Multumesc anticipat.

<?
require("RollingCurl.php");

function my_request($response) {

...............
...............

(variabile parsate pentru folosirea in request-ul POST)

...............
...............


}

$urls = array("http://www.site_01.com",
"http://www.site_02.com",
"http://www.site_03.com");

$rc = new RollingCurl("my_request");

$rc->window_size = 3;

foreach ($urls as $url) {
$request = new RollingCurlRequest($url, "GET");
$rc->add($request);
}

$rc->execute();
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...