pecl_http 0.20.0

Extended HTTP Support


This HTTP extension aims to provide a convenient and powerful
set of functionality for one of PHPs major applications.

It eases handling of HTTP urls, headers and messages, provides
means for negotiation of a client's preferred content type,
language and charset, as well as a convenient way to send any
arbitrary data with caching and resuming capabilities.

It provides powerful request functionality with support for
parallel requests.

Documentation:
https://mdref.m6w6.name/http

License: BSD-2-Clause

Changes

! Request functionality requires libcurl >= 7.12.3 now

+ Added 'bodyonly' request option
+ Added IOCTL callback for cURL
+ Added ssl_engines array and cookies array to the request info array
+ Added http_parse_cookie() to parse Set-Cookie headers

- Renamed http_connectcode to connect_code in the request info array
- Enable "original headers" previously stripped off by the message parser:
o X-Original-Transfer-Encoding (Transfer-Encoding)
o X-Original-Content-Encoding (Content-Encoding)
o X-Original-Content-Length (Content-Length)
- RequestExceptions thrown by HttpRequestPool::__construct() and send() are
now wrapped into the HttpRequestPoolException object's $exceptionStack property
- Removed http_compress() and http_uncompress() (http_deflate/inflate ambiguity)

* Fixed bug which caused GZIP encoded archives to be decoded
* Fixed bug with DEFLATE encoded response messages
* Fixed several memory leaks and inconspicuous access violations
* Fixed some logical errors in the uri builder