API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Snoopy Class Reference

Public Member Functions

 __construct ()
 
 fetch ($URI)
 
 submit ($URI, $formvars="", $formfiles="")
 
 fetchlinks ($URI)
 
 fetchform ($URI)
 
 fetchtext ($URI)
 
 submitlinks ($URI, $formvars="", $formfiles="")
 
 submittext ($URI, $formvars="", $formfiles="")
 
 set_submit_multipart ()
 
 set_submit_normal ()
 
 _striplinks ($document)
 
 _stripform ($document)
 
 _striptext ($document)
 
 _expandlinks ($links, $URI)
 
 _httprequest ($url, $fp, $URI, $http_method, $content_type="", $body="")
 
 _httpsrequest ($url, $URI, $http_method, $content_type="", $body="")
 
 setcookies ()
 
 _check_timeout ($fp)
 
 _connect (&$fp)
 
 _disconnect ($fp)
 
 _prepare_post_body ($formvars, $formfiles)
 

Data Fields

 $host = "www.php.net"
 
 $port = 80
 
 $proxy_host = ""
 
 $proxy_port = ""
 
 $proxy_user = ""
 
 $proxy_pass = ""
 
 $agent = "Snoopy v1.2.5"
 
 $referer = ""
 
 $cookies = array()
 
 $rawheaders = array()
 
 $maxredirs = 5
 
 $lastredirectaddr = ""
 
 $offsiteok = true
 
 $maxframes = 0
 
 $expandlinks = true
 
 $passcookies = true
 
 $user = ""
 
 $pass = ""
 
 $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"
 
 $results = ""
 
 $error = ""
 
 $response_code = ""
 
 $headers = array()
 
 $maxlength = 500000
 
 $read_timeout = 0
 
 $timed_out = false
 
 $status = 0
 
 $temp_dir = "/tmp"
 
 $curl_path = "/usr/bin/curl"
 
 $use_gzip = true
 
 $_maxlinelen = 4096
 
 $_httpmethod = "GET"
 
 $_httpversion = "HTTP/1.0"
 
 $_submit_method = "POST"
 
 $_submit_type = "application/x-www-form-urlencoded"
 
 $_mime_boundary = ""
 
 $_redirectaddr = false
 
 $_redirectdepth = 0
 
 $_frameurls = array()
 
 $_framedepth = 0
 
 $_isproxy = false
 
 $_fp_timeout = 30
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ _check_timeout()

_check_timeout (   $fp)
Here is the caller graph for this function:

◆ _connect()

_connect ( $fp)
Here is the caller graph for this function:

◆ _disconnect()

_disconnect (   $fp)
Here is the caller graph for this function:

◆ _expandlinks()

_expandlinks (   $links,
  $URI 
)
Here is the caller graph for this function:

◆ _httprequest()

_httprequest (   $url,
  $fp,
  $URI,
  $http_method,
  $content_type = "",
  $body = "" 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _httpsrequest()

_httpsrequest (   $url,
  $URI,
  $http_method,
  $content_type = "",
  $body = "" 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _prepare_post_body()

_prepare_post_body (   $formvars,
  $formfiles 
)
Here is the caller graph for this function:

◆ _stripform()

_stripform (   $document)
Here is the caller graph for this function:

◆ _striplinks()

_striplinks (   $document)
Here is the caller graph for this function:

◆ _striptext()

_striptext (   $document)
Here is the caller graph for this function:

◆ fetch()

fetch (   $URI)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetchform()

fetchform (   $URI)
Here is the call graph for this function:

◆ fetchlinks()

fetchlinks (   $URI)
Here is the call graph for this function:

◆ fetchtext()

fetchtext (   $URI)
Here is the call graph for this function:

◆ set_submit_multipart()

set_submit_multipart ( )

◆ set_submit_normal()

set_submit_normal ( )

◆ setcookies()

setcookies ( )
Here is the caller graph for this function:

◆ submit()

submit (   $URI,
  $formvars = "",
  $formfiles = "" 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ submitlinks()

submitlinks (   $URI,
  $formvars = "",
  $formfiles = "" 
)
Here is the call graph for this function:

◆ submittext()

submittext (   $URI,
  $formvars = "",
  $formfiles = "" 
)
Here is the call graph for this function:

Field Documentation

◆ $_fp_timeout

$_fp_timeout = 30

◆ $_framedepth

$_framedepth = 0

◆ $_frameurls

$_frameurls = array()

◆ $_httpmethod

$_httpmethod = "GET"

◆ $_httpversion

$_httpversion = "HTTP/1.0"

◆ $_isproxy

$_isproxy = false

◆ $_maxlinelen

$_maxlinelen = 4096

◆ $_mime_boundary

$_mime_boundary = ""

◆ $_redirectaddr

$_redirectaddr = false

◆ $_redirectdepth

$_redirectdepth = 0

◆ $_submit_method

$_submit_method = "POST"

◆ $_submit_type

$_submit_type = "application/x-www-form-urlencoded"

◆ $accept

$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"

◆ $agent

$agent = "Snoopy v1.2.5"

◆ $cookies

$cookies = array()

◆ $curl_path

$curl_path = "/usr/bin/curl"

◆ $error

$error = ""

◆ $expandlinks

$expandlinks = true

◆ $headers

$headers = array()

◆ $host

$host = "www.php.net"

◆ $lastredirectaddr

$lastredirectaddr = ""

◆ $maxframes

$maxframes = 0

◆ $maxlength

$maxlength = 500000

◆ $maxredirs

$maxredirs = 5

◆ $offsiteok

$offsiteok = true

◆ $pass

$pass = ""

◆ $passcookies

$passcookies = true

◆ $port

$port = 80

◆ $proxy_host

$proxy_host = ""

◆ $proxy_pass

$proxy_pass = ""

◆ $proxy_port

$proxy_port = ""

◆ $proxy_user

$proxy_user = ""

◆ $rawheaders

$rawheaders = array()

◆ $read_timeout

$read_timeout = 0

◆ $referer

$referer = ""

◆ $response_code

$response_code = ""

◆ $results

$results = ""

◆ $status

$status = 0

◆ $temp_dir

$temp_dir = "/tmp"

◆ $timed_out

$timed_out = false

◆ $use_gzip

$use_gzip = true

◆ $user

$user = ""

The documentation for this class was generated from the following file: