The pecl_http php extension is used to provide a convenient and powerful set of functionality for most of PHP’s applications ,like HTTP urls, dates, redirects, headers and messages, provides means for negotiation of clients preferred language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities.
You can easily install it on Linux server using pecl or pear command.
# pecl install pecl_http
If you have any problem/error while installing it using pecl command then you can do it manually , please follow the steps
1) Download the pecl_http source file
2) uncompress the file
tar –xzvf pecl_http-1.6.1.tgz
3) compile and install
4) Once it done you will have add “extension=http.so” line to php.ini file.