views:

122

answers:

1

I'm using Ruby+Watir to request pages through Firefox.

I would like to record the headers and content of every http request made through the browser.

Would it be possible to configure a proxy solution to store this information, either in a file or pipe it straight into an application? Could I use something such as squid or nginx to record header/content information?

PS: Running Ubuntu x64.

A: 

For Windows there is a program called Fiddler that does exactly what you need, so I did a Google search for "Fiddler for Linux" and came up with Charles. Looks pretty strong.

I didn't notice the price tag for the non-trial version of Charles. Another app worth looking into is Poster, an add-on for Firefox. It is not clear to me whether it captures all traffic or only returns response for directly input requests, but still could help you with your project.

Anthony
I'm actually using Charles for testing, and although I love its export->XML feature, I can't automate it because it doesn't allow that. It also has memory limitations, because it stores all of the information in memory (according to the docs).Thanks for the suggestion though.
Marco
Oh that's lame. 50 bucks for something that can't write to disk. I wish the Firebug history tool would be updated already.
Anthony