XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
snoopy Class Reference

Public Member Functions

 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='')
 
 setcookies ()
 
 _check_timeout ($fp)
 
 _connect (&$fp)
 
 _disconnect ($fp)
 
 _prepare_post_body ($formvars, $formfiles)
 
 getResults ()
 

Data Fields

 $scheme = 'http'
 
 $host = 'www.php.net'
 
 $port = 80
 
 $proxy_host = ''
 
 $proxy_port = ''
 
 $proxy_user = ''
 
 $proxy_pass = ''
 
 $agent = 'Snoopy v2.0.1'
 
 $referer = ''
 
 $cookies = []
 
 $rawheaders = []
 
 $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 = []
 
 $maxlength = 500000
 
 $read_timeout = 0
 
 $timed_out = false
 
 $status = 0
 
 $temp_dir = '/tmp'
 
 $curl_path = false
 
 $use_gzip = true
 
 $cafile
 
 $capath
 
 $_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 = []
 
 $_framedepth = 0
 
 $_isproxy = false
 
 $_fp_timeout = 30
 

Detailed Description

Definition at line 14 of file snoopy.php.

Member Function Documentation

◆ _check_timeout()

_check_timeout ( $fp)

Definition at line 848 of file snoopy.php.

◆ _connect()

_connect ( & $fp)

Fix

Definition at line 866 of file snoopy.php.

◆ _disconnect()

_disconnect ( $fp)

Definition at line 966 of file snoopy.php.

◆ _expandlinks()

_expandlinks ( $links,
$URI )

Definition at line 597 of file snoopy.php.

◆ _httprequest()

_httprequest ( $url,
$fp,
$URI,
$http_method,
$content_type = '',
$body = '' )

Fix to test

Definition at line 636 of file snoopy.php.

◆ _prepare_post_body()

_prepare_post_body ( $formvars,
$formfiles )

Fix Todo - test this : $postdata .= urlencode($key) ."%5B$cur_key%5D=". urlencode($cur_val)."&";

Definition at line 980 of file snoopy.php.

◆ _stripform()

_stripform ( $document)

Definition at line 507 of file snoopy.php.

◆ _striplinks()

_striplinks ( $document)

Definition at line 473 of file snoopy.php.

◆ _striptext()

_striptext ( $document)

Definition at line 524 of file snoopy.php.

◆ fetch()

fetch ( $URI)

Definition at line 105 of file snoopy.php.

◆ fetchform()

fetchform ( $URI)

Definition at line 329 of file snoopy.php.

◆ fetchlinks()

fetchlinks ( $URI)

Definition at line 299 of file snoopy.php.

◆ fetchtext()

fetchtext ( $URI)

Definition at line 354 of file snoopy.php.

◆ getResults()

getResults ( )

Definition at line 1062 of file snoopy.php.

◆ set_submit_multipart()

set_submit_multipart ( )

Definition at line 440 of file snoopy.php.

◆ set_submit_normal()

set_submit_normal ( )

Definition at line 452 of file snoopy.php.

◆ setcookies()

setcookies ( )

Definition at line 831 of file snoopy.php.

◆ submit()

submit ( $URI,
$formvars = '',
$formfiles = '' )

Definition at line 200 of file snoopy.php.

◆ submitlinks()

submitlinks ( $URI,
$formvars = '',
$formfiles = '' )

Definition at line 377 of file snoopy.php.

◆ submittext()

submittext ( $URI,
$formvars = '',
$formfiles = '' )

Definition at line 409 of file snoopy.php.

Field Documentation

◆ $_fp_timeout

$_fp_timeout = 30

Definition at line 94 of file snoopy.php.

◆ $_framedepth

$_framedepth = 0

Definition at line 91 of file snoopy.php.

◆ $_frameurls

$_frameurls = []

Definition at line 90 of file snoopy.php.

◆ $_httpmethod

$_httpmethod = 'GET'

Definition at line 83 of file snoopy.php.

◆ $_httpversion

$_httpversion = 'HTTP/1.0'

Definition at line 84 of file snoopy.php.

◆ $_isproxy

$_isproxy = false

Definition at line 93 of file snoopy.php.

◆ $_maxlinelen

$_maxlinelen = 4096

Definition at line 81 of file snoopy.php.

◆ $_mime_boundary

$_mime_boundary = ''

Definition at line 87 of file snoopy.php.

◆ $_redirectaddr

$_redirectaddr = false

Definition at line 88 of file snoopy.php.

◆ $_redirectdepth

$_redirectdepth = 0

Definition at line 89 of file snoopy.php.

◆ $_submit_method

$_submit_method = 'POST'

Definition at line 85 of file snoopy.php.

◆ $_submit_type

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

Definition at line 86 of file snoopy.php.

◆ $accept

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

Definition at line 50 of file snoopy.php.

◆ $agent

$agent = 'Snoopy v2.0.1'

Definition at line 28 of file snoopy.php.

◆ $cafile

$cafile

Definition at line 76 of file snoopy.php.

◆ $capath

$capath

Definition at line 77 of file snoopy.php.

◆ $cookies

$cookies = []

Definition at line 30 of file snoopy.php.

◆ $curl_path

$curl_path = false

Definition at line 68 of file snoopy.php.

◆ $error

$error = ''

Definition at line 54 of file snoopy.php.

◆ $expandlinks

$expandlinks = true

Definition at line 39 of file snoopy.php.

◆ $headers

$headers = []

Definition at line 56 of file snoopy.php.

◆ $host

$host = 'www.php.net'

Definition at line 21 of file snoopy.php.

◆ $lastredirectaddr

$lastredirectaddr = ''

Definition at line 36 of file snoopy.php.

◆ $maxframes

$maxframes = 0

Definition at line 38 of file snoopy.php.

◆ $maxlength

$maxlength = 500000

Definition at line 57 of file snoopy.php.

◆ $maxredirs

$maxredirs = 5

Definition at line 35 of file snoopy.php.

◆ $offsiteok

$offsiteok = true

Definition at line 37 of file snoopy.php.

◆ $pass

$pass = ''

Definition at line 47 of file snoopy.php.

◆ $passcookies

$passcookies = true

Definition at line 42 of file snoopy.php.

◆ $port

$port = 80

Definition at line 22 of file snoopy.php.

◆ $proxy_host

$proxy_host = ''

Definition at line 23 of file snoopy.php.

◆ $proxy_pass

$proxy_pass = ''

Definition at line 26 of file snoopy.php.

◆ $proxy_port

$proxy_port = ''

Definition at line 24 of file snoopy.php.

◆ $proxy_user

$proxy_user = ''

Definition at line 25 of file snoopy.php.

◆ $rawheaders

$rawheaders = []

Definition at line 32 of file snoopy.php.

◆ $read_timeout

$read_timeout = 0

Definition at line 58 of file snoopy.php.

◆ $referer

$referer = ''

Definition at line 29 of file snoopy.php.

◆ $response_code

$response_code = ''

Definition at line 55 of file snoopy.php.

◆ $results

$results = ''

Definition at line 52 of file snoopy.php.

◆ $scheme

$scheme = 'http'

Definition at line 20 of file snoopy.php.

◆ $status

$status = 0

Definition at line 62 of file snoopy.php.

◆ $temp_dir

$temp_dir = '/tmp'

Definition at line 64 of file snoopy.php.

◆ $timed_out

$timed_out = false

Definition at line 61 of file snoopy.php.

◆ $use_gzip

$use_gzip = true

Definition at line 73 of file snoopy.php.

◆ $user

$user = ''

Definition at line 46 of file snoopy.php.


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