Class Snoopy

Description

***********************************************

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***********************************************

Located in /library/snoopy.class.php (line 55)


	
			
Variable Summary
mixed $accept
mixed $agent
mixed $cookies
mixed $curl_path
mixed $error
mixed $expandlinks
mixed $headers
mixed $host
mixed $maxframes
mixed $maxlength
mixed $maxredirs
mixed $offsiteok
mixed $pass
mixed $passcookies
mixed $port
mixed $proxy_host
mixed $proxy_pass
mixed $proxy_port
mixed $proxy_user
mixed $rawheaders
mixed $referer
mixed $results
mixed $status
mixed $temp_dir
mixed $timed_out
mixed $user
mixed $_fp_timeout
mixed $_framedepth
mixed $_frameurls
mixed $_httpmethod
mixed $_isproxy
mixed $_maxlinelen
Method Summary
void fetch ( $URI)
void fetchform ( $URI)
void fetchlinks ( $URI)
void fetchtext ( $URI)
void setcookies ()
void submit ( $URI, [ $formvars = ""], [ $formfiles = ""])
void submitlinks ( $URI, [ $formvars = ""], [ $formfiles = ""])
void submittext ( $URI, [ $formvars = ""], [ $formfiles = ""])
void _check_timeout ( $fp)
void _connect ( &$fp)
void _disconnect ( $fp)
void _expandlinks ( $links,  $URI)
void _httprequest ( $url,  $fp,  $URI,  $http_method, [ $content_type = ""], [ $body = ""])
void _httpsrequest ( $url,  $URI,  $http_method, [ $content_type = ""], [ $body = ""])
void _prepare_post_body ( $formvars,  $formfiles)
void _stripform ( $document)
void _striplinks ( $document)
void _striptext ( $document)
Variables
mixed $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*" (line 90)
mixed $agent = "Snoopy v1.2.3" (line 68)
mixed $cookies = array() (line 70)
mixed $curl_path = "/usr/local/bin/curl" (line 108)
mixed $error = "" (line 94)
mixed $expandlinks = true (line 79)
mixed $headers = array() (line 96)
mixed $host = "www.php.net" (line 61)

** Public variables ***

mixed $lastredirectaddr = "" (line 76)
mixed $maxframes = 0 (line 78)
mixed $maxlength = 500000 (line 97)
mixed $maxredirs = 5 (line 75)
mixed $offsiteok = true (line 77)
mixed $pass = "" (line 87)
mixed $passcookies = true (line 82)
mixed $port = "" (line 62)
mixed $proxy_host = "" (line 63)
mixed $proxy_pass = "" (line 66)
mixed $proxy_port = "" (line 64)
mixed $proxy_user = "" (line 65)
mixed $rawheaders = array() (line 72)
mixed $read_timeout = 0 (line 98)
mixed $referer = "" (line 69)
mixed $response_code = "" (line 95)
mixed $results = "" (line 92)
mixed $status = 0 (line 102)
mixed $temp_dir = "/tmp" (line 104)
mixed $timed_out = false (line 101)
mixed $user = "" (line 86)
mixed $_fp_timeout = 30 (line 135)
mixed $_framedepth = 0 (line 132)
mixed $_frameurls = array() (line 131)
mixed $_httpmethod = "GET" (line 124)
mixed $_httpversion = "HTTP/1.0" (line 125)
mixed $_isproxy = false (line 134)
mixed $_maxlinelen = 4096 (line 122)

** Private variables ***

mixed $_mime_boundary = "" (line 128)
mixed $_redirectaddr = false (line 129)
mixed $_redirectdepth = 0 (line 130)
mixed $_submit_method = "POST" (line 126)
mixed $_submit_type = "application/x-www-form-urlencoded" (line 127)
Methods
fetch (line 146)
void fetch ( $URI)
  • $URI
fetchform (line 487)
void fetchform ( $URI)
  • $URI
fetchlinks (line 458)
void fetchlinks ( $URI)
  • $URI
fetchtext (line 515)
void fetchtext ( $URI)
  • $URI
setcookies (line 1109)
void setcookies ()
set_submit_multipart (line 607)
void set_submit_multipart ()
set_submit_normal (line 618)
void set_submit_normal ()
submit (line 296)
void submit ( $URI, [ $formvars = ""], [ $formfiles = ""])
  • $URI
  • $formvars
  • $formfiles
submitlinks (line 539)
void submitlinks ( $URI, [ $formvars = ""], [ $formfiles = ""])
  • $URI
  • $formvars
  • $formfiles
submittext (line 573)
void submittext ( $URI, [ $formvars = ""], [ $formfiles = ""])
  • $URI
  • $formvars
  • $formfiles
_check_timeout (line 1125)
void _check_timeout ( $fp)
  • $fp
_connect (line 1143)
void _connect ( &$fp)
  • &$fp
_disconnect (line 1196)
void _disconnect ( $fp)
  • $fp
_expandlinks (line 761)
void _expandlinks ( $links,  $URI)
  • $links
  • $URI
_httprequest (line 801)
void _httprequest ( $url,  $fp,  $URI,  $http_method, [ $content_type = ""], [ $body = ""])
  • $url
  • $fp
  • $URI
  • $http_method
  • $content_type
  • $body
_httpsrequest (line 964)
void _httpsrequest ( $url,  $URI,  $http_method, [ $content_type = ""], [ $body = ""])
  • $url
  • $URI
  • $http_method
  • $content_type
  • $body
_prepare_post_body (line 1210)
void _prepare_post_body ( $formvars,  $formfiles)
  • $formvars
  • $formfiles
_stripform (line 672)
void _stripform ( $document)
  • $document
_striplinks (line 638)
void _striplinks ( $document)
  • $document
_striptext (line 692)
void _striptext ( $document)
  • $document

Documentation generated on Sun, 20 Sep 2009 02:21:26 -0700 by phpDocumentor 1.4.1