gem 'simple_http_client'
gem install simple_http_client
require 'simple_http_client'
http_client = SimpleHttpClient.new 'http://host:port'
http_client.get('/path', { 'Header-Key' => 'value' })
http_client.post('/path', { 'Body' => 'Content'}, { 'Header-Key' => 'value' })
make
or make spec
or bundle install && rspec spec
This code is in the Public Domain. See LICENSE