def get_proxy_info_for_env
      parsed_uri = URI.parse(ENV['HTTP_PROXY'])
      if parsed_uri.scheme.to_s.downcase == 'http'
        return parsed_uri.host, parsed_uri.port, parsed_uri.user, parsed_uri.password
      else
        @logger.warn "Invalid protocol in ENV['HTTP_PROXY'] URI = #{ENV['HTTP_PROXY'].inspect} expecting 'http' got #{parsed_uri.scheme.inspect}"
        return
      end
    rescue Exception => e
      @logger.warn "Error parsing ENV['HTTP_PROXY'] with exception: #{e.message}"
      return
    end
def get_proxy_info_for_env
      parsed_uri = URI.parse(ENV['HTTP_PROXY'])
      if parsed_uri.scheme.to_s.downcase == 'http'
        return parsed_uri.host, parsed_uri.port, parsed_uri.user, parsed_uri.password
      else
        @logger.warn "Invalid protocol in ENV['HTTP_PROXY'] URI = #{ENV['HTTP_PROXY'].inspect} expecting 'http' got #{parsed_uri.scheme.inspect}"
        return
      end
    rescue Exception => e
      @logger.warn "Error parsing ENV['HTTP_PROXY'] with exception: #{e.message}"
      return
    end
Params hash:
  :user_agent => 'www.HostName.com'    # String to report as HTTP User agent
  :ca_file    => 'path_to_file'        # A path of a CA certification file in PEM format. The file can contain several CA certificates.
  :fail_if_ca_mismatch => Boolean      # If ca_file is set and the server certificate doesn't verify, a log line is generated regardless, but normally right_http_connection continues on past the failure.  If this is set, fail to connect in that case.  Defaults to false.
  :logger     => Logger object         # If omitted, HttpConnection logs to STDOUT
  :exception  => Exception to raise    # The type of exception to raise if a request repeatedly fails. RuntimeError is raised if this parameter is omitted.
  :proxy_host => 'hostname'            # hostname of HTTP proxy host to use, default none.
  :proxy_port => port                  # port of HTTP proxy host to use, default none.
  :proxy_username => 'username'        # username to use for proxy authentication, default none.
  :proxy_password => 'password'        # password to use for proxy authentication, default none.
  :http_connection_retry_count         # by default == Rightscale::HttpConnection.params[:http_connection_retry_count]
  :http_connection_open_timeout        # by default == Rightscale::HttpConnection.params[:http_connection_open_timeout]
  :http_connection_read_timeout        # by default == Rightscale::HttpConnection.params[:http_connection_read_timeout]
  :http_connection_retry_delay         # by default == Rightscale::HttpConnection.params[:http_connection_retry_delay]
  :raise_on_timeout                    # do not perform a retry if timeout is received (false by default)