Fiddler is a HTTP Web Debugger. [url removed, login to view]
I need a console app (or batch file) that can launch Fiddler, and make it log raw http packets to a text file.
Currently, I use a batch file that launches Tshark, (the command line version of Wireshark) to do this job. For your reference you can find Wireshark here: [url removed, login to view]
My current solution works fine on most PC's. However, Wireshark does not work properly in some VM environments. That's why I need to use Fiddler.
Here is the current batch file I use for tshark:
"C:\Program Files\Wireshark\[url removed, login to view]" -V -R "[url removed, login to view] == 18.104.22.168/16 && http contains "302"" -T text > "C:\Documents and Settings\Owner\Desktop\[url removed, login to view]"
As you can see, it tells tshark to output packets if the http contains a 302 redirect within a given IP range. I need a script or console app that does the same thing but for Fiddler. In other words, it should only log the data when these rules apply.
You may use any .NET language you wish. You may also use any scripting language that makes sense.
This console app/program must run fine in Windows 2008 Server.