Get and Post request in PHP with RollingCurl library

Butters

New Member
For the given simple php script how can I use RollingCurl library to make POST request for each of www.site_01.com, www.site_02.com and www.site_03.com using parsed variables catched with "my_request" function from the GET request ? Thank you.\[code\]<?PHPrequire("RollingCurl.php");function my_request($response) { ............... ............... (code used to parse some variables to use later in POST request) ............... ...............}$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();?>\[/code\]
 
Back
Top