# Pastebin dk6LmWf6 auth ={: username => "user", : password=> "pass" } blah = HTTParty.get ("URL", :basic_auth =>auth) puts blah.body