How can I print information about a NET:HTTPRequest for debug purposes?
Use set_debug_output
.
http = Net::HTTP.new(url.host, url.port)
http.set_debug_output($stdout) # Logger.new("foo.log") works too
That and more in http://github.com/augustl/net-http-cheat-sheet :)