Parses the incoming header block.
SimpleHttpHeaders
SimpleHttpHeaders
(string $headers)
-
string
$headers: Header block.
Accessor for authentication type.
string
getAuthentication
()
Accessor for parsed HTTP protocol version.
integer
getHttpVersion
()
Returns the redirected URL or false if no redirection.
string
getLocation
()
Accessor for MIME type header information.
string
getMimeType
()
Accessor for raw header block.
string
getRaw
()
Accessor for security realm.
string
getRealm
()
Accessor for parsed HTTP error code.
integer
getResponseCode
()
Test to see if the response is an authentication challenge.
boolean
isChallenge
()
Test to see if the response is a valid redirect.
boolean
isRedirect
()
Writes new cookies to the cookie jar.
Called on each header line to accumulate the held data within the class.
void
_parseHeaderLine
(string $header_line)
-
string
$header_line: One line of header.