get server information from the response : HTTP Reponse « Network « Ruby
- Ruby
- Network
- HTTP Reponse
get server information from the response
require 'uri'
Net::HTTP.get(URI.parse("http://www.oreilly.com"))
response = Net::HTTP.get_response('www.oreilly.com', '/about/')
puts response['Server']
puts response['SERVER']
Related examples in the same category