Please see the examples dir for basic usage

Adapters are available for based on the following code and are used in this order:

  • PEAR2\HTTP\Request\Adapter\Http (uses the Pecl Http class)
  • PEAR2\HTTP\Request\Adapter\Curl (based on the curl extension, not complete)
  • PEAR2\HTTP\Request\Adapter\Phpstream (based on the http php stream code)
  • PEAR2\HTTP\Request\Adapter\Phpsocket (based on php sockets, built from PEAR1 HTTP_Request)

Additional adapters:

  • PEAR2\HTTP\Request\Adapter\Filesystem (useful for mock Internet interaction)

Release Notes - 0.3.0

Bugs/Features:

  • Correct format of headers passed when setting CURLOPT_HTTPHEADER [amir]
  • Make all adapters send a disconnect notification [fpoirotte]
  • Fix "filesize" notification in cURL adapter. [fpoirotte]

Installation

$ php pyrus.phar install PEAR2_HTTP_Request-0.3.0
Status: 0.3.0 alpha, released on November 16, 2011
License: New BSD License
Maintained: yes

Browse Files

46 files in 24 directories.

Dependencies for PEAR2_HTTP_Request

  • PHP ≥ 5.3.0