Skip to content

Instantly share code, notes, and snippets.

@zeedunk
Created October 8, 2010 16:48
Show Gist options
  • Save zeedunk/617103 to your computer and use it in GitHub Desktop.
Save zeedunk/617103 to your computer and use it in GitHub Desktop.
#call restful URL in ruby.
require 'net/http'
Net::HTTP.start('localhost', '3000') { |http| puts http.get('/resource/and_args').body}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment