Enable the pecl command:
# apt-get install libmagic-dev
Install curl support
# apt-get install libcurl3
# pecl install pecl_http
pecl downloads and compiles. Follow the prompts and if any development library is not available, just use apt-get to install it.
After pecl is done, just add "extension=http.so" to php.ini and restart apache.