Skip to content

Instantly share code, notes, and snippets.

@csampson
Last active August 29, 2015 13:56
Show Gist options
  • Save csampson/9105981 to your computer and use it in GitHub Desktop.
Save csampson/9105981 to your computer and use it in GitHub Desktop.
endpoint_uri = URI('http://141.217.119.14:8000/WDETMain/;')
endpoint_http = Net::HTTP.start(endpoint_uri.host, endpoint_uri.port)
endpoint_response = nil
endpoint_http.request_get('/') do |response|
endpoint_response = response
next
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment