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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -