Skip to content

Instantly share code, notes, and snippets.

@Deekor
Forked from natritmeyer/debug_httparty_request.rb
Last active January 8, 2017 20:42
Show Gist options
  • Save Deekor/356820215af770c91ef558a14319f3ef to your computer and use it in GitHub Desktop.
Save Deekor/356820215af770c91ef558a14319f3ef to your computer and use it in GitHub Desktop.
How to debug HTTParty requests
class MyResource
include HTTParty
debug_output $stdout # <= will spit out all request details to the console
#...
end
# Or per request
response = HTTParty.post(url, :body => body, :debug_output => $stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment