Project

General

Profile

Bug #3510 ยป http_test.rb

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

 
1
#!/usr/bin/env ruby
2

    
3
require 'net/http'
4

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