Extended HTTP support. Again.
This extension is hosted at PECL and can be installed with PEAR’s pecl command:
# 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 libidn11-dev
apt-get install libcurl4-openssl-dev
apt-get install libevent-dev
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 ; if shared deps were enabled extension = hash.so extension = iconv.so extension = json.so ; finally load pecl/http extension = http.so
pecl/http-v2 conflicts with the following extensions:
The http extension registers the
http.* namespace for its stream filters. Provided stream filters are:
|2.0.4||Dropped the pecl/event conflict.|
|2.4.0||Dropped the ext/json dependency.|
The HTTP client. See http\Client\Curl’s options which is the only driver currently supported.
class http\Client implements SplSubject, Countable
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 Exception interface.
The http\Header class provides methods to manipulate, match, negotiate and serialize HTTP headers.
class http\Header implements Serializable
The message class builds the foundation for any request and response message.
class http\Message implements Countable, Serializable, Iterator
Parse, interpret and compose HTTP (header) parameters.
class http\Params implements ArrayAccess
The http\QueryString class provides versatile facilities to retrieve, use and manipulate query strings and form data.
class http\QueryString implements Serializable, ArrayAccess, IteratorAggregate
The http\Url class provides versatile means to parse, construct and manipulate URLs.