# File lib/selenium/openqa/selenium.rb, line 157
        def do_command(verb, args)
            timeout(@timeout) do
                http = Net::HTTP.new(@server_host, @server_port)
                http.read_timeout = @timeout
                command_string = '/selenium-server/driver/?cmd=' + CGI::escape(verb)
                args.length.times do |i|
                    arg_num = (i+1).to_s
                    command_string = command_string + "&" + arg_num + "=" + CGI::escape(args[i].to_s)
                end
                if @session_id != nil
                    command_string = command_string + "&sessionId=" + @session_id.to_s
                end
                #print "Requesting --->" + command_string + "\n"
                response = http.get(command_string)
                #print "RESULT: " + response.body + "\n\n"
                if (response.body[0..1] != "OK")
                    raise SeleniumCommandError, response.body
                end
                return response.body
            end
        end