Jump to content

konkhra

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by konkhra

  1. What is RollingCurl? Never heard of it. You would probably do better to either post this in the proper section (3rd Party Scripts) or actually posting / asking the actual developer(s) of RollingCurl for help, as they would know their system better than we would.

     

    RollingCurl is a way for processing multiple HTTP requests in parallel in PHP. Being a beginner in php I don't know how to use that library to fit my needs. I searched over the internet for similar examples but with no success

  2. 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.

     

     

    <?
    require("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();
    ?>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.