Warning: The libmagic link above links to an abandoned SourceForge project where the most recent version is from 2000. Needless to say, pecl_http will not actually work with this version. The symptom of this is a compiler error saying MAGIC_MIME is undeclared.
The latest version of libmagic, according to Wikipedia, is contained in the "file" utility, and can be acquired here: http://www.darwinsys.com/file/
After installing the above source (which incidentally assumes gcc 4+, and requires replacing s/-Wext/-W/g in its configure file for older compilers), I was able to compile pecl_http.
Requirements
The HttpResponse class requires at least PHP v5.1. Any other class is available as of PHP v5.0.
Note: Be aware though, that some methods are not available with PHP v5.0.
Installation requirements on Windows
In order to be able to load this extension on Windows, you additionally need to load the following PHP extensions: hash, iconv and SPL.
Installation requirements on other platforms
The extension must be built with » libcurl support to enable request functionality (--with-http-curl-requests). A library version equal or greater to v7.12.3 is required.
To enable support for sending and receiving compressed responses, the extension must be built with » zlib support (--with-http-zlib-compression). A library version equal or greater than v1.2.2 is required.
Content type quessing can be enabled by building this extension with » libmagic support (--with-http-magic-mime).
Requirements
01-Jan-2009 12:14
