PHP Classes > In-House PHP Classes > HTTP Retriever


HTTP Retriever
HTTP Client Library with multiple fallbacks
GZipped Archive
Download (19KB)
Provides a pure-PHP implementation of an HTTP v1.1 client, including support for:
  • GET and POST requests
  • SSL (https) support
  • HTTP authentication
  • chunked transfer encoding
  • custom headers and user agent spoofing
  • page caching
  • optional (but not required) CURL support
  • transfer time limits and benchmarks
This can be used in place of something like CURL or WGET for HTTP requests. Native SSL (HTTPS) requests are also supported if the PHP OpenSSL extension is installed under PHP v4.3.0 or greater.

If native SSL support is not available, it will also check for the CURL extension; if it's installed, it will transparently be used for SSL (HTTPS) requests.

If neither native SSL support nor the CURL extension are available, and libcurlemu (a CURL emulation library available from our web site) is found, the class will also check for the CURL console binary (usually in /usr/bin/curl); if it's installed, it will transparently be used for SSL requests.

In short, if it's possible to make an HTTP/HTTPS request from your server, this class can most likely do it.
Downloads: 3624
Added: Dec 13, 2005 11:48 PM
Last updated: Feb 13, 2007 03:20 PM
feedme@yenc32.com