The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
Constants usable with http_support()
querying for this constant will always return TRUE
whether support to issue HTTP requests is given, ie. libcurl support was compiled in
whether support to guess the Content-Type of HTTP messages is given, ie. libmagic support was compiled in
whether support for zlib encodings is given, ie. libz support was compiled in
whether support to issue HTTP requests over SSL is givem, ie. linked libcurl was built with SSL support
Constants usable with http_parse_params()
allow commans additionally to semicolons as separator
continue parsing after an error occurred
raise PHP warnings on parse errors
all three values above, bitwise or'ed
Constants usable with http_parse_cookie() and its return value
Constants usable with http_deflate() and HttpDeflateStream
Constants usable with HttpDeflateStream and HttpInflateStream
Constants used for error reporting and Exceptions
runtime error
an invalid parameter was passed
header() or similar operation failed
HTTP header parse error
unknown/invalid request method
with operation incompatible message type
encoding/decoding error
request failure
request pool failure
socket exception
response failure
invalid URL
querystring operation failure
Constants usable with HttpMessage
Constants usable with HttpQueryString
Constants used for the httpauthtype request option
Constants used for the HTTP protocol version request option
Constants used for the SSL protocol type and version request option
Constants used for the proxytype request option
Constants used for the ipresolve request option
Predefined HTTP request method constants
Constants usable with http_redirect()
guess applicable redirect method
permanent redirect (301 Moved permanently)
standard redirect (302 Found)
Note: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request. However, most existing user agent implementations treat 302 as if it were a 303 response, performing a GET on the Location field-value regardless of the original request method. The status codes 303 and 307 have been added for servers that wish to make unambiguously clear which kind of reaction is expected of the client.
redirect applicable to POST requests (303 See other)
proxy redirect (305 Use proxy)
temporary redirect (307 Temporary Redirect)
Constants usable with http_build_url()
replace every part of the first URL when there's one of the second URL
join relative paths
join query strings
strip any user authentication information
strip any password authentication information
strip any authentication information
strip explicit port numbers
strip complete path
strip query string
strip any fragments (#identifier)
strip anything but scheme and host