Added a more recent version of httplib2 because the version Splunk ships with doesn't support httplib2.socks.PROXY_TYPE_HTTP_NO_TUNNEL which is required to work with a Squid forward proxy
Use a proxy for connecting to the website, if settings have been configured as per http://docs.splunk.com/Documentation/Splunk/latest/admin/Specifyaproxyserver