Home » HTTP » HTTP_Client
Easy way to perform multiple HTTP requests and process their results
This package is unmaintained.
Download latest release 1.2.1 (archived versions might be outdated)
License: BSD
Description
The HTTP_Client class wraps around HTTP_Request and provides a higher level interface
for performing multiple HTTP requests.
Features:
* Manages cookies and referrers between requests
* Handles HTTP redirection
* Has methods to set default headers and request parameters
* Implements the Subject-Observer design pattern: the base class sends
events to listeners that do the response processing.
Documentation
Maintainers
- Alexey Borzov (avb) — lead, active
Dependencies
Required
- PHP (>= 4.3.0)
- PEAR Installer (>= 1.4.3)
- HTTP_Request (>= 1.4.0)
Releases
- 1.2.1 (stable, 2008-10-25)
Release notes
License: BSD
Cookies set by sub.example.com for example.com were incorrectly rejected.
Thanks to Dylan Doxey (hyperion at doxey dot org) for report and initial patch. - 1.2.0 (stable, 2008-10-16)
Release notes
License: BSD
* Proper dependencies' versions
* Implemented put() and delete() methods (request #2073 and numerous others)
* Implemented methods to iterate over the responses (see request #12322)
* Perform GET request when redirecting via <meta> tag after POST (bug #13487)
* Handle the case of quoted redirect url in <meta> tag (bug #13903) - 1.1.1 (stable, 2007-05-19)
Release notes
License: BSD
* Switched to package.xml 2.0
* Switched to BSD license
* Proper header comment blocks and various phpdoc fixes
* Added a switch controlling serialization of session cookies to CookieManager
class, use serializeSessionCookies(true) to enable their serialization. The
default behaviour is still to delete them (request #8778, also #9142) - 1.1.0 (stable, 2006-06-03)
Release notes
License: PHP License
Fixes:
* Fixed PHP warning if cookie path was empty (bug #1987)
* Fixed fatal PHP error on empty URL, PEAR_Error is returned now (bug #2933)
* Do not try to follow redirects to non-HTTP URLs (bug #5759)Feature additions:
* It is possible to define a constant HTTP_CLIENT_QUIRK_MODE in your script,
if it is present then HTTP_Client will follow common browser behaviour
rather than RFC 2616. Currently this means: always do a GET request
on a 301 redirect (request #1854).
* HTTP_Client now analyzes the response body for <meta http-equiv="Refresh">
tags and follows the redirects defined in them (request #5734)
* Added possibility to send extra headers with requests (request #7552)
* It is now much easier to store permanent cookies received by HTTP_Client:
added magic __sleep() and __wakeup() methods to CookieManager class to aid
in its (un)serialization, added getCookieManager() method to HTTP_Client,
added possibility to pass CookieManager object to HTTP_Client's
constructor (request #7578). - 1.0.0 (stable, 2004-06-11)
Release notes
License: PHP License
Since no problems were discovered with release 1.0.0beta1, the same code
is now re-released with "stable" status. - 1.0.0beta1 (beta, 2004-04-30)
Release notes
License: PHP License
* REMOVED deprecated HTTP_Client_Listener
* Applied patch from #1151, cookies with empty values are now deleted
* Added method enableHistory() allowing to enable/disable saving of history,
suggested by Matthew Feinberg - 0.2 (beta, 2004-01-18)
Release notes
License: PHP License
* Depend on most recent version of HTTP_Request
- HTTP_Client_Listener is deprecated in favor of HTTP_Request_Listener
- Added possibilty to attach Listeners to created HTTP_Request objects
- Added support for file uploads in post() method
* Better handling of secure cookies (thanks to Denis Malinovsky)
* Added setMaxRedirects() method - 0.1 (beta, 2003-06-05)
Release notes
License: PHP License
Initial PEAR release
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1151 | Closed | Bug | 2004-04-06 | Cookie Manager should unset cookies with no value | |
| #1854 | Closed | Req | 2004-07-12 | Redirect on Code 301 | |
| #1987 | Closed | Bug | 2004-07-26 | Warning when cookies have no path | |
| #2073 | Closed | Req | 2004-08-06 | PUT and DELETE Support | |
| #2079 | Bogus | Bug | 2004-08-07 | parameters set using setRequestParameter don't get sent in the get function | |
| #2345 | Bogus | Bug | 2004-09-15 | DIRECTORY_SEPARATOR usage is incorrect in CookieManager.php | |
| #2772 | Bogus | Req | 2004-11-16 | Support for proxies unimplemented | |
| #2933 | Closed | Req | 2004-12-09 | Fatal error if requested URL is empty | |
| #4045 | Bogus | Bug | 2005-04-03 | https calls hang from PHP 4.11 | |
| #4807 | Bogus | Bug | 2005-07-12 | High memory usage | |
| #5732 | Duplicate | Req | 2005-10-20 | Timeout support request | |
| #5734 | Closed | Req | 2005-10-20 | Redirect via '<meta http-equiv="Refresh"' | |
| #5740 | Duplicate | Bug | 2005-10-21 | may need amendment for inappropriate header responses | |
| #5759 | Closed | Bug | 2005-10-23 | Location header not handled correctly for non-http protocols | |
| #5973 | Bogus | Bug | 2005-11-15 | HTTP Client returns NULL on every fetched URL | |
| #6938 | Closed | Bug | 1.0.0 | 2006-02-26 | Error in 'Location' header analysis |
| #7552 | Closed | Req | 1.0.0 | 2006-05-03 | Add the ability to send custom headers |
| #7578 | Closed | Req | 1.0.0 | 2006-05-08 | Serialization and Cookie Manager |
| #8778 | Closed | Req | 1.1.0 | 2006-09-24 | Cookies with empty expiry are cleaned prematurely |
| #8804 | Bogus | Req | 1.1.0 | 2006-09-27 | PUT & DELETE support |
| #8831 | Bogus | Bug | 1.1.0 | 2006-10-02 | Problem with SSL |
| #9142 | Duplicate | Req | 1.1.0 | 2006-10-23 | Cookies deleted on serialization |
| #9428 | Bogus | Bug | 1.1.0 | 2006-11-23 | problem with https calls |
| #12322 | Closed | Req | 1.1.1 | 2007-10-24 | add method allResposes() |
| #13430 | Bogus | Bug | 1.1.1 | 2008-03-18 | // in location becomes / |
| #13431 | Wont fix | Req | 1.1.1 | 2008-03-18 | Reset _responses only |
| #13487 | Closed | Bug | 1.1.1 | 2008-03-24 | Invalid HTTP request method on META redirect |
| #13810 | Bogus | Bug | 1.1.1 | 2008-04-30 | Meta redirect work Incorect |
| #13903 | Closed | Bug | 1.1.1 | 2008-05-14 | Incorrect detection in meta refresh response |
| #15526 | Bogus | Doc | 1.2.1 | 2009-01-06 | Http_Client->get documentation wrong |
| #15527 | Bogus | Doc | 1.2.1 | 2009-01-06 | Http_Client->get documentation wrong |
| #15528 | Bogus | Doc | 1.2.1 | 2009-01-06 | Http_Client->get documentation wrong |
| #15544 | Bogus | Doc | 1.2.1 | 2009-01-07 | Http_Client->get documentation wrong |
| #15889 | Wont fix | Req | 2009-02-10 | Let HTTP_Client use Net_URL2 if needed | |
| #17868 | Wont fix | Bug | 1.2.1 | 2010-09-16 | PHP Deprecated: new by reference |