Project

General

Profile

Bug #3510 ยป https_test.rb

amiklas (Andrew Miklas), 06/30/2010 05:25 PM

 
1
#!/usr/bin/env ruby
2

    
3
require 'net/https'
4

    
5
n = Net::HTTP.new("localhost", 3000)
6
n.use_ssl = true
7
n.open_timeout = n.read_timeout = n.ssl_timeout = 5
8
n.get("/")