http proxy support by setting NETWORK_PROXY variable

This should implement feature request in #919.