As part of debugging WWW::Mechanize, I realized that the best way to
compare what my browser is doing to what mechanize is doing would be to
compare their HTTP transactions incoming and outgoing. What I want is
an HTTP proxy that can record the transactions and also supports SSL.
As part of debugging WWW::Mechanize, I realized that the best way to
compare what my browser is doing to what mechanize is doing would be to
compare their HTTP transactions incoming and outgoing. What I want is
an HTTP proxy that can record the transactions and also supports SSL.
A script to record traffic would a cinch. Basically,
Download MouseHole from the above link. Instructions for running it
are there as well.
Add a script named `proxyrecord.user.rb’ to your
~/.mouseHole/userScripts/ directory.
Contains:
MouseHole.script do
name "Proxy Record"
namespace "http://yourdomain.com/"
description "Records all traffic, very snoopy."
include_match %r!http://.*!
version "1.0"
rewrite do |req, res|
# store contents of `req' and `res' in the database or a
# log file or something
end
end
Very helpful, why, thanks. I presume I would need to use something
like WATIR to see the unencrypted contents of an SSL connection by
getting it directly from IE.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.