Extended HTTP support. Again.
# pecl install pecl_http
pecl/http depends on a number of system libraries and PHP extensions for special features.
The following system libraries are required to build this extension:
apt-get install zlib1g-dev
The following system libraries are optional and provide additional features:
apt-get install libcurl4-openssl-dev
apt-get install libbrotli-dev
apt-get install libevent-dev
apt-get install libicu-dev
apt-get install libidn11-dev
apt-get install libidn2-0-dev
If configured with multiple IDNA libraries' support, there's a run-time precedence of ICU over GNU libidn, which in turn has precendence over idnkit. If neither IDNA2008, nor IDNA2003 is explicitly requested, IDNA2008 has precendence.
There are usually different styles of SSL support for libcurl available, so you can choose between 'openssl' and f.e. 'nss' or 'gnutls' when installing libcurl.
This extension unconditionally depends on the pre-loaded presence of the following PHP extensions:
--with-http-shared-deps (default) it depends on the pre-loaded presence of the following extensions, as
long as they were available at build time:
Please ensure that all extension on which pecl/http depends, are loaded before it, e.g in your
; obligatory deps
extension = raphf.so
extension = propro.so (PHP < 8.0, ext-http < 3.0 only)
; if shared deps were enabled
extension = hash.so
extension = iconv.so
extension = json.so
; finally load pecl/http
extension = http.so
The http extension registers the
http.* namespace for its stream filters. Provided stream filters are:
This extension provides a stub file four your editor's auto-completion.
Download the Stub file:
A class representing a list of cookies with specific attributes.
The http\Env class provides static methods to manipulate and inspect the server's current request's HTTP environment.
The http extension's
The http\Header class provides methods to manipulate, match, negotiate and serialize HTTP headers.
The message class builds the foundation for any request and response message.
Parse, interpret and compose HTTP (header) parameters.
The http\QueryString class provides versatile facilities to retrieve, use and manipulate query strings and form data.
The http\Url class provides versatile means to parse, construct and manipulate URLs.