5 Extended HTTP support. Again.
7 * Introduces the http namespace.
8 * PHP stream based message bodies.
9 * Encapsulated env request/response.
10 * Modular client support.
14 This extension is hosted at [PECL](http://pecl.php.net) and can be installed with [PEAR](http://pear.php.net)'s pecl command:
16 # pecl install pecl_http
20 pecl/http depends on a number of system libraries and PHP extensions for special features.
22 #### Required system libraries:
24 The following system libraries are required to build this extension:
27 Provides gzip/zlib/deflate encoding.
28 Minimum version: 1.2.0.4
29 Install on Debian: `apt-get install zlib1g-dev`
32 #### Optional system libraries:
34 The following system libraries are optional and provide additional features:
37 Provides IDNA support in URLs.
39 Install on Debian: `apt-get install libidn11-dev`
42 Provides HTTP request functionality.
43 Minimum version: 7.18.2
44 Install on Debian: `apt-get install libcurl4-openssl-dev`
45 Note: There are usually different styles of SSL support for libcurl available, so you can replace 'openssl' in the above command f.e. with 'nss' or 'gnutls'.
48 Eventloop support for the HTTP client.
50 Install on Debian: `apt-get install libevent-dev`
54 This extension unconditionally depends on the pre-loaded presence of the following PHP extensions:
61 If configured ```--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:
67 Please ensure that all extension on which pecl/http depends, are loaded before it, e.g in your `php.ini`:
73 ; if shared deps were enabled
78 ; finally load pecl/http
83 pecl/http-v2 conflicts with the following extensions:
86 * event (only until <= 2.0.3)
90 * http.etag.mode = "crc32b"
91 Default hash method for dynamic response payloads to generate an ETag.
95 The http extension registers the ```http.*``` namespace for its stream filters. Provided stream filters are:
98 Decode a stream encoded with chunked transfer encoding.
100 Encode a stream with chunked transfer encoding.
102 Decode a stream encoded with deflate/zlib/gzip encoding.
104 Encode a stream with deflate/zlib/gzip encoding.
110 2.0.4 | Dropped the pecl/event conflict.