Skip to content

Instantly share code, notes, and snippets.

@adamrobbie
Created February 24, 2014 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamrobbie/9195297 to your computer and use it in GitHub Desktop.
Save adamrobbie/9195297 to your computer and use it in GitHub Desktop.
uri = URI::HTTP.build(
:host => '127.0.0.1',
:port => 9393,
:path => request.path_info,
:query => request.query_string
)
content_type 'application/json', :charset => 'utf-8'
Net::HTTP.get(uri)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment