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

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -