$AC = new AngryCurl('callback_function'); # Initializing so called 'web-console mode' with direct cosnole-like output $AC->init_console(); # Importing proxy and useragent lists, setting regexp, proxy type and target url for proxy check # You may import proxy from an array as simple as $AC->load_proxy_list($proxy array); $AC->load_proxy_list(AC_DIR . DIRECTORY_SEPARATOR . 'import' . DIRECTORY_SEPARATOR . 'proxy_list.txt', 200, 'http', 'http://google.com', 'title>G[o]{2}gle'); $AC->load_useragent_list(AC_DIR . DIRECTORY_SEPARATOR . 'import' . DIRECTORY_SEPARATOR . 'useragent_list.txt'); /* NOTE: IF USING request() - "on the fly" proxy server changing WILL apply * * You may use request(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 */ $AC->request('http://ya.ru'); /* NOTE: IF USING get() - "on the fly" proxy server changing WILL apply * * You may use shorcut get(URL, HEADERS, CURL OPTIONS) to create add new GET requests * HEADERS may be any HTTP headers * CURL OPTIONS may be any of supported by CURL */ $AC->get('http://ya.ru'); /* NOTE: IF USING post() - "on the fly" proxy server changing WILL apply * * You may use shorcut post(URL, POST_DATA, HEADERS, CURL OPTIONS) to create add new GET requests * POST_DATA may be an array of POST-params * HEADERS may be any HTTP headers * CURL OPTIONS may be any of supported by CURL */ $AC->post('http://ya.ru');