SimpleUserAgentFetches web pages whilst keeping track of cookies and authentication.
Located in /user_agent.php (line 31)
void
setCookie
(string $name, string $value, [string $host = false], [string $path = '/'], [string $expiry = false])
mixed
$_additional_headers
= array() (line 40)
mixed
$_authenticator
(line 34)
mixed
$_connection_timeout
= DEFAULT_CONNECTION_TIMEOUT (line 39)
mixed
$_cookies_enabled
= true (line 33)
mixed
$_cookie_jar
(line 32)
mixed
$_max_redirects
= DEFAULT_MAX_REDIRECTS (line 35)
mixed
$_proxy
= false (line 36)
mixed
$_proxy_password
= false (line 38)
mixed
$_proxy_username
= false (line 37)
Starts with no cookies, realms or proxies.
Adds a header to every fetch.
Ages the cookies by the specified time.
Fetches a URL as a response object. Will keep trying if redirected.
It will also collect authentication realm information.
Reads the current cookies within the base URL.
Reads the most specific cookie value from the browser cookies.
Removes expired and temporary cookies as if the browser was closed and re-opened. Authorisation has to be obtained again as well.
Sets the socket timeout for opening a connection.
Sets an additional cookie. If a cookie has the same name and path it is replaced.
Sets the identity for the current realm.
Sets the maximum number of redirects before a page will be loaded anyway.
Sets proxy to use on all requests for when testing from behind a firewall. Set URL to false to disable.
Builds the appropriate HTTP request object.
Sets up either a direct route or via a proxy.
Actually make the web request.
Documentation generated on Sun, 04 May 2008 09:22:24 -0500 by phpDocumentor 1.3.0