pear/http_request2
Provides an easy way to perform HTTP requests.
v2.7.0
4.4M downloads/mo
#4296 most downloaded on Packagist
pear/HTTP_Request2
What this package is like to depend on
Last release 1 years ago
06 Apr 2025
Release timing varies
gaps range from 2 months to 4.4 years
Nearly every release is documented
notes for 9 of 10 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
10 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
10 releases · Jan 2014 to Apr 2025Releases
latest 10-
v2.7.006 Apr 2025Release notes
Open source →- Tested on PHP 8.4, psalm 6 used for static analysis;
- Prevent XSS if PHP files backing networked tests (those in
tests/_networkdirectory) are served from a publicly available website.
Release notes
Open source →Added
- Tested on PHP 8.4;
- Psalm 6 used for static analysis;
- Updated Public Suffix List.
Fixed
- Prevent XSS when PHP files backing server-side tests are served from a publicly available website, thanks to Peter Potrowl (peter017 at gmail dot com) for the report.
data/generate-list.phpwill only run with a command-line SAPI.- Better random value used for
cnonceparameter in Digest authentication, see [issue #30]. Digest authentication should be considered deprecated, however. psalm.xmlconfiguration file is no longer installed by composer.
-
v2.6.001 Nov 2023Release notes
Open source →- Use psalm for static analysis, several minor issues fixed
- Correctly parse HTTP status line with an empty reason-phrase (see #26)
- Updated Public Suffix List
Release notes
Open source →- Tested on PHP 8.2 and 8.3
- Use [psalm] for static analysis, several minor issues fixed
- Correctly parse HTTP status line with an empty reason-phrase (see [pull request #26])
- Updated Public Suffix List
-
v2.5.106 Jan 2022Release notes
Open source →- The package runs under PHP 8.1 without
E_DEPRECATEDmessages (see [issue #25]) - Updated Public Suffix List
- The package runs under PHP 8.1 without
-
v2.5.012 Jul 2021Release notes
Open source →Fixed
- Socket adapter will now retry writing to socket rather than throw an exception if
fwrite()call returns zero written bytes ([issue #23])
Changed
- Socket adapter will use only TLS 1.2 and TLS 1.3 (the latter is available on PHP 7.4+)
- Upgraded tests for PHPUnit 9 compatibility, [PHPUnit Polyfills package] is used to run them on PHP 5.6 to PHP 8
- Test suite now runs on Github Actions rather than on Travis
- Updated Public Suffix List
- Socket adapter will now retry writing to socket rather than throw an exception if
-
v2.4.224 Sep 2020Release notes
Open source →Fixed
Socket adapter could prematurely end receiving the response body due to
fread()call returning an empty string -
v2.4.101 Aug 2020Release notes
Open source →Fixed
- Switch socket to blocking mode when enabling crypto, this fixes HTTPS requests through proxy with Socket adapter ([issue #20])
- Add
.gitattributesfile to omit installing tests ([issue #19])
-
v2.4.026 Jul 2020Release notes
Open source →- Minimum required version is now PHP 5.6, as using older versions for HTTPS requests may be insecure
- Removed support for magic_quotes_runtime, as get_magic_quotes_runtime() was deprecated in PHP 7.4 and the functionality itself was disabled since PHP 5.4 (PEAR bug #23839)
- Socket adapter now uses socket in non-blocking mode, as some configurations could have problems with timeouts in HTTPS requests (PEAR bug #21229)
- Fixed bogus size check error with gzipped responses larger than 4 GiB uncompressed (PEAR bug #21239)
- Use current "Intermediate compatibility" cipher list
- Updated Public Suffix List
The package is now 100% autoload-compatible, when installed with composer it no longer uses include-path and does not contain require_once statements
-
v2.3.013 Feb 2016Nothing published for this version
-
v2.2.116 Jan 2014 -
v2.2.012 Jan 2014