The HTTP extension for PHP aims to provide a convenient and powerful set of functionality for one of PHP's major applications. It eases handling of HTTP URLs, dates, redirects, headers, and messages, provides means for negotiation of clients' preferred language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities. It provides powerful request functionality if built with CURL support. Parallel requests are available for PHP 5 and greater.
| Tags | Software Development Libraries php classes Internet Web |
|---|---|
| Licenses | BSD Revised |
| Operating Systems | OS Independent |
| Implementation | C |
Recent releases


Changes: This release fixes bug #15495 (HttpMessage::setHttpVersion segfault), bug #15497 (HttpInflateStream::finish segfault), bug #15499 (HttpRequest::addHeaders segfault), bug #15509 (HttpMessage::rewind memory leaks), bug #15800 (Double free when zval is separated in convert_to_*), and bug #15813 (Requests not removed from multi stack when fatal errors occur with fcgi).


Changes: This release fixes PHP 5.3 API incompatibilities (including bug #15065). It fixes memory corruption with headers and HttpRequest. It fixes a crash in HttpMessage::unserialize(). It fixes bug #14826 (a race condition in http_request_dtor) and bug #15223 (http_parse_message cuts off more than headers).


Changes: A bug concerning building with PHP-5.3 was fixed. A bug in which st->errorbuffer was not cleared between uses of persistent handles was fixed. A bug in which properties of a class extending HttpMessage were inaccessible was fixed.


Changes: This release added HttpRequest::flushCookies(), a HTTP_URL_FROM_ENV constant, retrycount and retrydelay request options, libevent support for libcurl and a --with-http-curl-libevent configure option, and HttpRequestPool::enableEvents(). Problems with the cookiestore request option (with persistent handles) were fixed along with a crash on prematurely called HttpMessage::next(), a possible shutdown crash with http_parse_params() and PHP4, a possible crash at module shutdown in the persistent handle API, a missing PHP_LIBDIR definition in config.m4 for PHP4, and non- standard shell support in config.m4.


Changes: This release fixes a possible crash at module shutdown in the persistent handle API (probably fixing bug #11509). It fixes the test suite for PHP4. It fixes a missing PHP_LIBDIR definition in config.m4 for PHP4. It fixes non-standard shell support in config.m4.