Skip to content

Instantly share code, notes, and snippets.

@alcabanillas-engh
Created October 28, 2008 17:48
Show Gist options
  • Save alcabanillas-engh/20447 to your computer and use it in GitHub Desktop.
Save alcabanillas-engh/20447 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'net/http'
http = Net::HTTP.new('localhost', 4567)
path = '/call'
data = 'destination=14155551212&source=9998'
response, body = http.post(path, data)
puts response.inspect
puts body.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment