PHP_api接口教程(12)
发布时间:2021-06-06
发布时间:2021-06-06
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
You may contact the author of Snoopy by e-mail at: monte@
Or, write to: Monte Ohrt CTO, ispi
237 S. 70th suite 220 Lincoln, NE 68510
The latest version of Snoopy can be obtained from: /
*************************************************/ class Snoopy {
/**** Public variables ****/ /* user definable vars */
var $host var $port var $proxy_host var $proxy_port var $proxy_user var $proxy_pass var $agent var $referer var $cookies var $rawheaders var $maxredirs var $offsiteok var $maxframes var $expandlinks =
= = =
02111-1307 USA
= 80; = = = = = "";
""; ""; ""; ""; "";
// host name we are connecting to // port we are connecting to
// proxy host to use // proxy port to use // proxy user to use // proxy password to use // referer info to pass
"Snoopy v1.2.3"; // agent we masquerade as
// array of cookies to pass
// array of raw headers
array(); = = = =
array();
// $cookies["username"]="joe";
// $rawheaders["Content-type"]="text/html";
5; // http redirection depth maximum. 0 = disallow ""; true; 0;
// contains address of last redirected address
// allows redirection off-site
// frame content depth maximum. 0 = disallow
// expand links to fully qualified URLs.
// this only applies to fetchlinks() // submitlinks(), and submittext()
var $lastredirectaddr =
true;