Download the PHP package grantholle/pear-http-request2 without Composer
On this page you can find all versions of the php package grantholle/pear-http-request2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grantholle/pear-http-request2
More information about grantholle/pear-http-request2
Files in grantholle/pear-http-request2
Package pear-http-request2
Short Description A port of pear/http_request2: Provides an easy way to perform HTTP requests.
License BSD-3-Clause
Homepage https://github.com/grantholle/pear-http-request2
Informations about the package pear-http-request2
HTTP_Request2
Provides an easy way to perform HTTP requests, uses pluggable adapters
- Socket: pure PHP implementation of HTTP protocol (does not use http stream wrapper), based on older PEAR HTTP_Request package
- Curl: wrapper around PHP's cURL extension
- Mock: used for testing packages depending on HTTP_Request2, returns predefined responses without network interaction
Both Socket and Curl adapters support POST requests with data and file uploads, basic and digest authentication, cookies, managing cookies across requests, HTTP and SOCKS5 proxies, gzip and deflate encodings, redirects, monitoring the request progress with Observers...
This package is PEAR HTTP_Request2 and has been migrated from PEAR SVN
Please report all issues via the GitHub issues.
Pull requests are welcome.
Basic usage
Documentation
...is available on PEAR website
- Numerous configuration options
- How to populate the request object
- Description of available adapters
- Processing of HTTP response
- Monitoring the progress of request with observers
- Possible exceptions
Generated API documentation for the current release is also there.
Testing, Packaging and Installing (Pear)
To test, run either
$ phpunit tests/
or
$ pear run-tests -r
You may need to set up the NetworkConfig.php file if you want to perform tests that interact with a web server. Its template is NetworkConfig.php.dist file, consult it for the details.
To build, simply
$ pear package
To install from scratch
$ pear install package.xml
To upgrade
$ pear upgrade -f package.xml
All versions of pear-http-request2 with dependencies
grantholle/pear-net-url2 Version ^4.0
ext-zlib Version *
ext-mbstring Version *
ext-fileinfo Version *
ext-curl Version *