composer/composer — pull request #453 by simensen (2012-03-14 22:52:38+00:00)
Title: Fix downloading HTTPS dists through Proxy errors

This fixes a problem that didn't allow me to download dists in an environment that was behind a proxy server.

The following **fails**:

~~~php

~~~

It gave me:

> failed to open stream: Cannot connect to HTTPS server through proxy

I realized that it wasn't simply "HTTPS through proxy" that was a problem when I remembered that a good chunk of the exploration commands were happening over HTTPS. Only difference was `copy` versus `file_get_contents`.

Not sure why this should matter, but it is difference between working and not in one of my environments. (PHP 5.3.2 bug perhaps?)