adding support for using a default proxy (set using System Properties 'http.proxyHost', 'http.proxyPort' etc)