HTTP Logging in rails?

You have to tell the outbound HTTP client to use a proxy.

For HTTParty it's fairly simple (from the docs),

class Twitter
    include HTTParty
    http_proxy 'http://myProxy', 1080

If you're looking for a proxy to set up, personally I like Paros proxy (Java so cross platform and does SSL).


Try also http_logger gem:

require 'http_logger'

Net::HTTP.logger = Logger.new(...) # defaults to Rails.logger if Rails is defined
Net::HTTP.colorize = true # Default: true

This will log all requests that goes through Net::HTTP library.

https://github.com/railsware/http_logger