Constants
(No version information available, might be only in CVS)
Constants — predefined http module constants
Predefined Constants
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()
- HTTP_SUPPORT (integer)
- querying for this constant will always return TRUE
- HTTP_SUPPORT_REQUESTS (integer)
- whether support to issue HTTP requests is given, ie. libcurl support was compiled in
- HTTP_SUPPORT_MAGICMIME (integer)
- whether support to guess the Content-Type of HTTP messages is given, ie. libmagic support was compiled in
- HTTP_SUPPORT_ENCODINGS (integer)
- whether support for zlib encodings is given, ie. libz support was compiled in
- HTTP_SUPPORT_SSLREQUESTS (integer)
- whether support to issue HTTP requests over SSL is givem, ie. linked libcurl was built with SSL support
Constants usable with http_parse_params()
- HTTP_PARAMS_ALLOW_COMMA (integer)
- allow commans additionally to semicolons as separator
- HTTP_PARAMS_ALLOW_FAILURE (integer)
- continue parsing after an error occurred
- HTTP_PARAMS_RAISE_ERROR (integer)
- raise PHP warnings on parse errors
- HTTP_PARAMS_DEFAULT (integer)
- all three values above, bitwise or'ed
Constants usable with http_parse_cookie() and its return value
Constants usable with http_deflate() and HttpDeflateStream
- HTTP_DEFLATE_LEVEL_DEF (integer)
- HTTP_DEFLATE_LEVEL_MIN (integer)
- HTTP_DEFLATE_LEVEL_MAX (integer)
- HTTP_DEFLATE_TYPE_ZLIB (integer)
- HTTP_DEFLATE_TYPE_GZIP (integer)
- HTTP_DEFLATE_TYPE_RAW (integer)
- HTTP_DEFLATE_STRATEGY_DEF (integer)
- HTTP_DEFLATE_STRATEGY_FILT (integer)
- HTTP_DEFLATE_STRATEGY_HUFF (integer)
- HTTP_DEFLATE_STRATEGY_RLE (integer)
- HTTP_DEFLATE_STRATEGY_FIXED (integer)
Constants used for error reporting and Exceptions
- HTTP_E_RUNTIME (integer)
- runtime error
- HTTP_E_INVALID_PARAM (integer)
- an invalid parameter was passed
- HTTP_E_HEADER (integer)
- header() or similar operation failed
- HTTP_E_MALFORMED_HEADERS (integer)
- HTTP header parse error
- HTTP_E_REQUEST_METHOD (integer)
- unknown/invalid request method
- HTTP_E_MESSAGE_TYPE (integer)
- with operation incompatible message type
- HTTP_E_ENCODING (integer)
- encoding/decoding error
- HTTP_E_REQUEST (integer)
- request failure
- HTTP_E_REQUEST_POOL (integer)
- request pool failure
- HTTP_E_SOCKET (integer)
- socket exception
- HTTP_E_RESPONSE (integer)
- response failure
- HTTP_E_URL (integer)
- invalid URL
- HTTP_E_QUERYSTRING (integer)
- querystring operation failure
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
- HTTP_METH_GET (integer)
- HTTP_METH_HEAD (integer)
- HTTP_METH_POST (integer)
- HTTP_METH_PUT (integer)
- HTTP_METH_DELETE (integer)
- HTTP_METH_OPTIONS (integer)
- HTTP_METH_TRACE (integer)
- HTTP_METH_CONNECT (integer)
- HTTP_METH_PROPFIND (integer)
- HTTP_METH_PROPPATCH (integer)
- HTTP_METH_MKCOL (integer)
- HTTP_METH_COPY (integer)
- HTTP_METH_MOVE (integer)
- HTTP_METH_LOCK (integer)
- HTTP_METH_UNLOCK (integer)
- HTTP_METH_VERSION_CONTROL (integer)
- HTTP_METH_REPORT (integer)
- HTTP_METH_CHECKOUT (integer)
- HTTP_METH_CHECKIN (integer)
- HTTP_METH_UNCHECKOUT (integer)
- HTTP_METH_MKWORKSPACE (integer)
- HTTP_METH_UPDATE (integer)
- HTTP_METH_LABEL (integer)
- HTTP_METH_MERGE (integer)
- HTTP_METH_BASELINE_CONTROL (integer)
- HTTP_METH_MKACTIVITY (integer)
- HTTP_METH_ACL (integer)
Constants usable with http_redirect()
- HTTP_REDIRECT (integer)
- guess applicable redirect method
- HTTP_REDIRECT_PERM (integer)
- permanent redirect (301 Moved permanently)
- HTTP_REDIRECT_FOUND (integer)
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.
- HTTP_REDIRECT_POST (integer)
- redirect applicable to POST requests (303 See other)
- HTTP_REDIRECT_PROXY (integer)
- proxy redirect (305 Use proxy)
- HTTP_REDIRECT_TEMP (integer)
- temporary redirect (307 Temporary Redirect)
Constants usable with http_build_url()
- HTTP_URL_REPLACE (integer)
- replace every part of the first URL when there's one of the second URL
- HTTP_URL_JOIN_PATH (integer)
- join relative paths
- HTTP_URL_JOIN_QUERY (integer)
- join query strings
- HTTP_URL_STRIP_USER (integer)
- strip any user authentication information
- HTTP_URL_STRIP_PASS (integer)
- strip any password authentication information
- HTTP_URL_STRIP_AUTH (integer)
- strip any authentication information
- HTTP_URL_STRIP_PORT (integer)
- strip explicit port numbers
- HTTP_URL_STRIP_PATH (integer)
- strip complete path
- HTTP_URL_STRIP_QUERY (integer)
- strip query string
- HTTP_URL_STRIP_FRAGMENT (integer)
- strip any fragments (#identifier)
- HTTP_URL_STRIP_ALL (integer)
- strip anything but scheme and host
Constants
