# File lib/deltacloud/drivers/opennebula/cloud_client.rb, line 63
    def self.http_start(url, &block)
        http = Net::HTTP.new(url.host, url.port)
        if url.scheme=='https'
            http.use_ssl = true
            http.verify_mode=OpenSSL::SSL::VERIFY_NONE
        end

        begin
            http.start do |connection|
                block.call(connection)
            end
        rescue Errno::ECONNREFUSED => e
            str =  "Error connecting to server (#{e.to_s})."
            str << "Server: #{url.host}:#{url.port}"

            return CloudClient::Error.new(str)
        end
    end