Added support for proxy authentication

I added support for proxy authentication of HTTP_PROXY or http_proxy env.