ruby - Logging GET request URL's with Mechanize -


is there way capture various requests when mechanize loads given url. example when watching console in firefox's dev tools see various requests loading pages' media, etc... i'm wondering if there way access , log same info using mechanize

you can enable logging:

require "logger" log = logger.new "log.txt" log.level = logger::debug  require "mechanize" agent = mechanize.new{ |a| a.log = log } 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -