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


Release Notes: This release fixes Bug #64310 (weak etags W/"abc" are quoted as "W/"abc"").


Release Notes: This release adds PHP 5.4 compatibility. It fixes bug #59974: methodRegister doesn't allow "_" to be in the method name. It fixes an SAPI hang if the request body size is greater than 4k with http_get_request_body_stream().


Release Notes: This release fixed a bug when the status component of the HTTP response is missing, A double-free when auto-decompressing pages, a non-funtional HttpMessage::setResponseStatus(), a problem where http_redirect breaks output with zlib.output_compression=on, a segmentation fault when passing an invalid URL to http_get(), a logic error and possible hang in sapi_deactivate when using http_get_request_body() with a request body longer than 4096 bytes, and a problem where Make failed.


Release Notes: The generic http_negotiate() function was added. The proxytunnel and noproxy request options were added. The proxytunnel option enables tunelling through the HTTP proxy. The noproxy option is a comma separated list of hosts for which a proxy should not be used. The following postredir request option constants were added: HTTP_POSTREDIR_301, HTTP_POSTREDIR_302, HTTP_POSTREDIR_ALL. The HTTP_AUTH_DIGEST_IE authtype request option constant was added. The HTTP_PROXY_HTTP_1_0 proxytype request option constant was added. The condition_unmet request info member was added.


Release Notes: A Last-Modified caching bug in the http_send API was fixed. A bug with HttpRequestPool and libevent when adding requests while running was fixed. A memory leak in HttpResponse::getStream() was fixed. A PHP crash after casting a scalar argument to an array in HttpQueryString was fixed. A bug in which http_redirect would fail with url->port==0 was fixed.
A style and grammar checker for English, Polish, German, and other languages