comparison doc/www.powerfulproxy.com/public_html/do_it.php @ 614:2b68d711a063 draft

PP (added referer header)
author Nick <nick@somerandomnick.ano>
date Sun, 18 Sep 2011 10:11:17 +0000
parents c2879679114d
children a929c6303a71
comparison
equal deleted inserted replaced
613:c2879679114d 614:2b68d711a063
33 if (file_exists("do_it.inc")) include "do_it.inc"; 33 if (file_exists("do_it.inc")) include "do_it.inc";
34 if (!isset($CURL_OPTIONS)) $CURL_OPTIONS = array( 34 if (!isset($CURL_OPTIONS)) $CURL_OPTIONS = array(
35 // CURLOPT_USERAGENT => "AnoNet proxy", 35 // CURLOPT_USERAGENT => "AnoNet proxy",
36 CURLOPT_USERAGENT => $_SERVER["HTTP_USER_AGENT"]." AnoNetProxy", 36 CURLOPT_USERAGENT => $_SERVER["HTTP_USER_AGENT"]." AnoNetProxy",
37 CURLOPT_AUTOREFERER => TRUE, 37 CURLOPT_AUTOREFERER => TRUE,
38 CURLOPT_REFERER => $_SERVER["HTTP_REFERER"],
38 CURLOPT_CONNECTTIMEOUT => 15, 39 CURLOPT_CONNECTTIMEOUT => 15,
39 CURLOPT_TIMEOUT => 28, 40 CURLOPT_TIMEOUT => 28,
40 CURLOPT_MAXREDIRS => 10, 41 CURLOPT_MAXREDIRS => 10,
41 CURLOPT_FAILONERROR => FALSE, 42 CURLOPT_FAILONERROR => FALSE,
42 CURLOPT_HEADER => 1, 43 CURLOPT_HEADER => 1,