* CURL OPTIONS may be any of supported by CURL */ $AC->post('http://ya.ru'); /* WARNING: IF USING AngryCurlRequest - no "on the fly" proxy server changing will apply * * You may use AngryCurlRequest(URL, METHOD, POST_DATA, HEADERS, CURL OPTIONS) to create add new requests * METHOD may be GET or POST * POST_DATA may be an array of POST-params * HEADERS may be any HTTP headers * CURL OPTIONS may be any of supported by CURL * * Properties are public, they may be passed to constructer on changed after as in example below */ $request = new AngryCurlRequest('http://ya.ru'); $request->options = array(CURLOPT_HEADER => true, CURLOPT_NOBODY => true); $AC->add($request); # Starting with number of threads = 200 $AC->execute(200); # You may pring debug information, if console_mode is NOT on ( $AC->init_console(); ) //AngryCurl::print_debug(); # Destroying unset($AC); # Callback function example function callback_function($response, $info, $request) { if ($info['http_code'] !== 200) { AngryCurl::add_debug_msg("->\t" . $request->options[CURLOPT_PROXY] . "\tFAILED\t" . $info['http_code'] . "\t" . $info['total_time'] . "\t" . $info['url']); } else { AngryCurl::add_debug_msg("->\t" . $request->options[CURLOPT_PROXY] . "\tOK\t" . $info['http_code'] . "\t" . $info['total_time'] . "\t" . $info['url']); } return;