Just to add to the above.
I had to install the following in Ubuntu 7.10 .
(otherwise I get a message saying missing curl.h)
# apt-get install libcurl4-gnutls-dev
Hope this helps someone the trouble i went into, just to get the http_post_fields function working
Regs
Srimal.
Installation
(No version information available, might be only in CVS)
Installation — Installing the HTTP extension
설치
이 » PECL 확장은 PHP 배포판에서 제공하지 않습니다.
PECL 확장 설치에 관한 정보는 매뉴얼의 PECL 확장 설치에 있습니다. 새 릴리즈, 내려받기, 소스파일, 개발자 정보, CHANGELOG 등의 추가 정보는 여기에 있습니다: » http://pecl.php.net/package/pecl_http.
Note: The official name of this extension is pecl_http.
PECL 확장 DLL은 » PHP 내려받기 페이지나 » http://pecl4win.php.net/에서 받을 수 있습니다.
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 그리고 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).
Installation
28-Mar-2008 09:55
25-Feb-2008 03:20
The installation guideline is very insufficient. I've installed for Debian lenny/sid with the following step;
apt-get install php5-dev (to enable pecl command)
apt-get install libcurl3 (to get curl support)
apt-get install libmagic
and
pecl install pecl_http
pecl will download and compile but before that just follow the prompt. If the respective development library is not available in your system, the compilation will abort.
After pecl_http got install, copy /usr/lib/php5/20060613+lfs/http.so to /usr/lib/apache2/modules and restart apache
Hopefully this will help others from facing the same hassle for quite sometime.
07-Jan-2008 12:24
Don't forget to copy ''http.so'' in the php/modules directory and add ''extension=http.so'' to php.ini.
15-Jun-2007 07:09
The "Installation requirements on Windows" are confusing:
If you are a Windows user you need to have the php_curl.dll extension installed before being able to install the php_http.dll extension.
