PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Request2

Provides an easy way to perform HTTP requests.

Download latest release 2.7.0 (there might be newer Composer installable version)

License: BSD 3-Clause License

Description

PHP5 rewrite of HTTP_Request package (with parts of HTTP_Client). Provides
cleaner API and pluggable Adapters:
* Socket adapter, based on old HTTP_Request code,
* Curl adapter, wraps around PHP's cURL extension,
* Mock adapter, to use for testing packages dependent on HTTP_Request2.
Supports POST requests with data and file uploads, basic and digest
authentication, cookies, managing cookies across requests, proxies, gzip and
deflate encodings, redirects, monitoring the request progress with Observers...

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#5022OpenReq2005-08-07Non-Blocking Requests not support
#5463ClosedReq2005-09-20CURL support
#5735ClosedReq2005-10-20No "true" timeout exists
#7630ClosedReq2006-05-15Listener on data submit (file upload)
#7633ClosedReq2006-05-15'sentRequest' notification
#8964ClosedBug2006-10-11readTimeout isn't working as it should
#9829Wont fixReq2007-01-14Support for limiting the size of the response body
#11246ClosedReq2007-06-07Problem with deflate encoding
#13039No FeedbackReq2008-02-01Download helper class
#13611No FeedbackReq2008-04-07add optional content-type header to multipart/form-data post elements
#13729ClosedReq2008-04-20add ability to specify a different filename in addFile()
#14990ClosedReqCVS2008-11-10Improve PHPCS results
#15060Wont fixReq0.1.02008-11-17Add a static method to set default adapater
#15086BogusBug0.1.02008-11-19Implement the socket driver, or swap it from being the default loaded
#15172BogusReq0.1.02008-11-27Add ability to get request / response size in bytes
#15237Wont fixReq0.1.02008-12-04Add removePostParameter() and removeUpload() methods
#15305ClosedBug0.1.02008-12-15deflate content encoding handled incorrectly
#15368ClosedReq0.1.02008-12-20Support RFC 3986 with respect to urlencoding
#15424ClosedReq0.1.02008-12-28Add a verbose or debug mode that would log the request/response to stdout
#15575BogusBug0.2.02009-01-08Error on adding a cookie string.
#15617ClosedBug0.2.02009-01-12HTTP_Request2 unusable if phpversion <= 5.2.6 and curlversion >= 7.18.0
#15629ClosedReq0.2.02009-01-13Add ability to set exception to be thrown in mock adapter
#15630ClosedReq0.2.02009-01-13Make an isToken() method that encapsulates the regular expression
#15656Wont fixReq0.2.02009-01-16Do not return response in send method
#15716ClosedBug0.2.02009-01-22fatal php error if requested server sends no headers (curl-adapter)
#15721ClosedBug0.2.02009-01-22Curl handle not closed if curl_exec returns false (curl-adapter)
#15785ClosedBugCVS2009-01-27HTTP_Request2 fails for servers sending HTTP-StatusCode 100 Continue (curl-ada)
#15823BogusBug0.3.02009-01-30Missing semi-colon at the end of Request2.php
#15824BogusBug0.3.02009-01-30Missing semi-colon at the end of Request2.php
#15881ClosedReq2009-02-06Stream access to body
#15937ClosedBug2009-02-24Expect header sent for some versions of curl by default can not be unsetted
#16146ClosedReq0.3.02009-04-23Custom 'Host' header & get raw body
#16149ClosedBug0.3.02009-04-24Multiple requests through a single object errors
#16440ClosedBug0.4.02009-07-14Problem with magic_quotes_runtime
#16555ClosedBug0.4.02009-08-29mbstring.func_overload breaks decodeGzip()
#16646ClosedReq0.4.12009-09-26memory leak
#16762ClosedReq0.4.12009-11-03HTTP_Request2_Exception should contain errorcodes
#16799ClosedReqCVS2009-11-18Add ability to not auto-set content-type and content-length
#16828ClosedReq0.5.12009-11-24Adding "sentBody" event
#16863ClosedReq0.5.12009-12-02addUpload accept file pointer.
#16910Wont fixReq0.5.12009-12-16Add 'retry' support
#17031ClosedBug2010-01-25Erroneous Keep-Alive assertions
#17079ClosedReqCVS2010-02-09All tests modifying the current dir
#17106ClosedBugCVS2010-02-16HTTP_Request2Test::testPlainBody fails
#17185DuplicateReq0.5.12010-03-02Malformed request
#17323DuplicateBug0.5.12010-04-19Magic Quotes Check is Incorrect
#17326ClosedBug0.5.12010-04-20unit test failure (MultipartBody.php isn't required)
#17327DuplicateBug0.5.12010-04-20unit test failure (MultipartBody.php isn't required)
#17344BogusBugSVN2010-04-25Unit tests fail HTTP_Request2Test::testPlainBody
#17450ClosedBug0.5.22010-06-01Handle when set follow_redirects => true but curl follow redirect is disabled
#17460ClosedBug0.5.22010-06-02Allow set custom content-type header for POST requests
#17506DuplicateReq0.5.22010-06-21Add more exception classes
#17507ClosedReq0.5.22010-06-21Multiple "Link" header are stripped
#17826ClosedBug0.5.22010-08-27Error with multiple requests with same HTTP_Request2 and Socket implementation
#17913Wont fixReq0.5.22010-09-29clearPostParameters()
#18169ClosedBug0.5.22011-01-01HTTP_Request2_Response::decodeDeflate fails for empty string
#18225ClosedReq0.5.22011-01-27Import cookies from response
#18318ClosedReq2011-02-26Publish stable version of HTTP_Request2
#18331ClosedBug2.0.0beta12011-03-02Add warning raised by stream_socket_client() to exception message
#18412ClosedReq2.0.0beta22011-03-31Impossible to determine effective URL when follow_redirects is true
#18421ClosedBug2.0.0beta22011-04-03Body not sent for PUT request with Curl Adapter
#18443ClosedBug2.0.0beta32011-04-14Curl Adaptor ignores SSL settings on redirects
#18480BogusBug2.0.0beta32011-04-26Certificate error when connecting to https://accounts.google.com
#18680OpenReqUnknown2011-07-22Be able to run asyncronous request(s)
#18716ClosedReq2.0.0RC12011-08-11Http_Request2_Response::phrases should be public
#18745Wont fixReq2.0.0RC12011-08-19optionally throw exception when HTTP error status code sent
#18754BogusBug2.0.0RC12011-08-24Emulating POST
#18755ClosedBug2.0.0RC12011-08-24Http request with NULL value
#18758BogusBug2.0.0RC12011-08-25file public-suffix-list.php is missing
#18865BogusBug2.0.0RC12011-09-22500+ statuses - death errors
#18924ClosedBug2.0.02011-10-23Test can't be run for sources
#19156BogusBug2.0.02011-12-22isRedirected() reports FALSE even when redirected if HTTP HEAD used.
#19225BogusBug2.0.02012-01-14missing dep in the package
#19233ClosedReq2.0.02012-01-21Posting file with digest auth means files is uploaded twice
#19238ClosedDoc2.0.02012-01-22addUpload cannot take string containing file contents
#19274BogusBug2.0.02012-02-02The Response Content-Length is missing in METHOD_HEAD
#19276ClosedReqSVN2012-02-04Mock: per-URL responses
#19298BogusBug2.0.02012-02-18fatal error when calling getCode() for exception
#19316OpenReq2.0.02012-03-04Upload by passing string contents
#19332ClosedReq2012-03-15Add proxy type in cURL adapter
#19337ClosedBug2.0.02012-03-16Use of undefined variable
#19343DuplicateReq2.0.02012-03-22Class not tested before inclusion
#19344ClosedReq2.0.02012-03-22Class presence not tested before inclusion
#19351ClosedDoc2.0.02012-03-26SSL certificate validation
#19515ClosedReq2.1.12012-07-18Custom options for CURL adapter
#19610No FeedbackBug2.1.12012-09-20Body ignored on PATCH requests
#19934ClosedBug2.1.12013-05-06Infinite loop with stream wrapper passed as upload
#19937ClosedReq2.1.12013-05-07cookie jar and invalid cookies
#20012BogusBug2.1.12013-07-17function calculateRequestLength lose header
#20125ClosedBug2.1.12013-11-11HTTP_Request2_Adapter_Socket class doesn't handle chunked data
#20174DuplicateBug2.2.02014-01-13incorrect package
#20175ClosedReq2014-01-13Please Provides LICENSE file
#20176ClosedBug2.2.02014-01-13Corrupted archive
#20227BogusBug2.2.12014-03-29Malformed response when using GET after HEAD
#20228ClosedBug2.2.12014-03-29invalid chunk length ''
#20349Wont fixReq2.2.12014-07-22Add observer with a config option
#20401ClosedReq2.2.12014-09-08domainMatch function in CookieJar does not allow setting domains from same tree
#20440ClosedBug2.2.12014-11-12Put Request contains no body
#20458BogusBug2.2.12014-12-07HTTP_Request2 POST parameters ignored?
#20459BogusReqUnknown2014-12-09HTTP_Request2 vs HttpRequest
#20462ClosedBug2.2.12014-12-13Can't select HTTPS protocol
#20519ClosedBug2.2.12015-03-21Failing test suite with latest Net_URL2 (2.1.1)
#20531ClosedBug2.2.12015-04-18Net_URL2 2.2.0 has switched to classmap autoloader
#20561ClosedBugUnknown2015-06-11CookieJar compares request host w/ response cookie domain, fails after redirect
#21038OpenReq2.3.02016-03-07Response-Header "Set-Cookie"
#21108BogusBug2.3.02016-09-02Requests with body always take 40ms minimum
#21118BogusBug2.3.02016-09-21Package depends on non-existing version of Net_URL2
#21229ClosedBug2.3.02017-07-10fgets never times out with malicious server
#21239ClosedBug2.3.02017-08-28Gzipped response body larger than 4 GiB fails size check
#23839ClosedBug2.3.02019-08-04get_magic_quotes_runtime() is deprecated