on JRuby, RbConfig::CONFIG["host"] doesn't exist
default requests have "Ruby" in the user-agent
init the connection once