AlexandrPoddubsky / rolling-curl

Automatically exported from code.google.com/p/rolling-curl
0 stars 0 forks source link

i added header , but it seems not working #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
see below code  i added Host: www.oozk.com  .but it seem not working;

<?php

require("RollingCurl.php");
function request_callback($response, $info, $request) { 

    print_r($info);
    echo "<hr>";
    print_r($response);
    echo "<hr>";
}

// top 20 sites according to alexa (11/5/09)
$urls = array("http://127.0.0.1",
             "http://127.0.0.1");

$headers = "Host: www.oozk.com";
$rc = new RollingCurl("request_callback");
$rc->window_size = 20;
foreach ($urls as $url) {
    $request = new RollingCurlRequest($url,'GET',NULL,$headers);
    $rc->add($request);
}
$rc->execute();

Original issue reported on code.google.com by realqi...@gmail.com on 4 Sep 2012 at 10:56

GoogleCodeExporter commented 8 years ago
sorry, i found the problem

Original comment by realqi...@gmail.com on 5 Sep 2012 at 12:39