Permalink
Switch branches/tags
Nothing to show
Find file
ed75588 Jan 7, 2010
August Lilleaas Adding all.
9 lines (7 sloc) 235 Bytes
require "net/http"
require "uri"
uri = URI.parse("http://google.com/")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)
request.basic_auth("username", "password")
response = http.request(request)