wtest / httpfox

Automatically exported from code.google.com/p/httpfox
GNU General Public License v2.0
0 stars 0 forks source link

Would it be possible to add a logging function? #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Would it be possible to add a logging function?

It would be great if you can provide a logging function. With that i should be 
able to log the filtered traffic to a log file (text file would be great). 
Also, an api for this?

Original issue reported on code.google.com by antony.c...@gmail.com on 27 Mar 2012 at 4:06

GoogleCodeExporter commented 8 years ago
Issues #72 and #23 seem to be similar, but more along the lines of a 'save as' 
after the fact.

I've been using the Apache module 'mod_firehose' 
(http://httpd.apache.org/docs/trunk/mod/mod_firehose.html) to capture requests 
and responses on my webserver, and I can use 'openssl' to re-send the requests 
(after changing the "Connection: keep-alive" to "Connection: close"):

sed 's/Connection: keep-alive/Connection: close/' < old.request | openssl 
s_client -quiet -ign_eof -connect www.myhost.com:443 > new.response

If I could get httpfox to dump the requests and responses in the same format, 
I'd be ecstatic!

Original comment by pkts...@gmail.com on 10 Apr 2013 at 6:56