Why are there no longer Windows binaries for PECL extensions like pecl_http?

Iain Fraser picture Iain Fraser · Oct 28, 2009 · Viewed 17.5k times · Source

I'm working on a PHP project running on Windows and it would be so very handy to be able to use pecl_http rather than working with cURL and re-inventing the wheel in order to do all the cool stuff the pecl extension does like parsing headers and so forth.

Everywhere I read (including the PHP site) is that the Windows binary for pecl_http is no longer packaged with any PHP installation. I can't find any explanation as to why not anywhere. Also, http://pecl4win.php.net/ has been down for ages and I can only assume that the pecl4win project is dead.

Does anyone know the story about what happened and if there are any nice alternatives to pecl_http that I can run in a WIMP environment?

Answer

Alex Weber picture Alex Weber · Oct 28, 2009

Try this:

First, download the PECL module from the php website : PECL 5.2.2 Win32 binaries.
Then unzipp it and copy the file php_http.dll in your PHP extension folder.
Now edit your php.ini file (c:\WINDOWS\php.ini) and activate the module :
extension=php_http.dll
Restart apache and check the installation using phpinfo.

**EDIT: ** Link: PECL 5.2.6 Windows Binaries

Source