Skip to content

Instantly share code, notes, and snippets.

@alcabanillas-engh
Created November 23, 2008 16:14
Show Gist options
  • Save alcabanillas-engh/28145 to your computer and use it in GitHub Desktop.
Save alcabanillas-engh/28145 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'net/http'
begin
http = Net::HTTP.new('localhost', 4567)
path = '/call'
data = 'destination=4155551212&source=303&serviceid=8051'
rescue => err
puts err
end
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