PHP_api接口教程(13)
发布时间:2021-06-06
发布时间:2021-06-06
var $passcookies = true; // pass set cookies back through redirects
// NOTE: this currently does not respect // dates, domains or paths.
var $user var $pass // http accept types var $accept var $results var $error var $headers var $maxlength var $read_timeout seconds
=
= = = ""; = = = =
""; "";
// user for http authentication // password for http authentication
"image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
// where the content is put
""; ""; array(); 500000; 0;
// error messages sent here
// response code returned from server // headers returned from server sent here
// max return data length (body) // timeout on read operations, in // supported only since PHP 4 Beta 4
// set to 0 to disallow timeouts
var $response_code =
var $timed_out var $status var $temp_dir webserver
= = =
false; 0; "/tmp";
// if a read operation timed out // http request status //
temporary
directory
that
the
// has permission to write to.
// under Windows, this should be C:\temp =
var $curl_path "/usr/local/bin/curl";
// Snoopy will use cURL for fetching // SSL content if a full system path to
// the cURL binary is supplied here. // set to false if you do not have
// cURL installed. See http://curl.haxx.se
// for details on installing cURL. // Snoopy does *not* use the cURL // library functions built into php, // as these functions are not stable // as of this Snoopy release.
/**** Private variables ****/
var $_maxlinelen = var $_httpmethod =
4096; "GET";
// max line length (headers) // default http request method