Zend_Http_Client is an implementation of an HTTP client in PHP. The client supports basic features like sending different HTTP requests and handling redirections, as well as more advanced features like proxy settings, HTTP authentication and cookie persistence (using a Zend_Http_CookieJar object)
todo | Implement proxy settings |
---|---|
category | Zend |
package | Zend_Http |
subpackage | Header |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(string $name= null
, string $value= null
, integer $expires= null
, string $path= null
, string $domain= null
, boolean $secure= false
, boolean $httponly= false
, string $maxAge= null
, integer $version= null
) : \SetCookie
todo | Add validation of each one of the parameters (legal domain, etc.) |
---|
string
string
integer
string
string
boolean
boolean
string
integer
\SetCookie
__toString()
fromString($headerLine, boolean $bypassHeaderFieldName = false
) : array | \SetCookie
static |
---|
boolean
\Zend_Http_Header_Exception_InvalidArgumentException |
---|
array
\SetCookie
getDomain() : string
string
getExpires($inSeconds = false
) : integer
integer
getFieldName() : string
string
'Set-Cookie'getFieldValue() : string
\Zend_Http_Header_Exception_RuntimeException |
---|
string
getMaxAge() : integer
integer
getName() : string
string
getPath() : string
string
getValue() : string
string
getVersion() : integer
integer
isExpired(integer $now = null
) : boolean
Always returns false if the cookie is a session cookie (has no expiry time)
integer
Timestamp to consider as "now"
boolean
isHttponly() : boolean
boolean
isSecure() : boolean
boolean
isSessionCookie() : boolean
boolean
isValidForRequest($requestDomain, $path, $isSecure = false
)
setDomain(string $domain)
string
setExpires(integer $expires) : \SetCookie
integer
\SetCookie
setHttponly(boolean $httponly)
boolean
setMaxAge(integer $maxAge)
integer
setName(string $name) : \SetCookie
string
\SetCookie
setPath(string $path)
string
setSecure(boolean $secure)
boolean
setValue(string $value)
string
setVersion(integer $version)
integer
toString()
toStringMultipleHeaders(array $headers)
$domain : string
null
$expires : integer
null
$httponly : true
null
$maxAge : integer
null
$name : string
null
$path : string
null
$secure : boolean
null
$value : string
null
$version : integer
null