Rewriting incoming HTTP responses for fun and profit

Jul 13, 2010 19:05

One of my favourite debugging tools recently has been Fiddler. It's an HTTP proxy which intercepts requests from any browser. I've been using it for a long time, but mostly just to inspect HTTP conversations - it was only a few months ago that I realised that Fiddler's JScript.NET-based Custom Rules support would allow me to rewrite HTTP requests/responses on the fly. It's great for debugging other peoples' code ;)

The recipe for this can be found on the script samples page - look for 'Remove all DIV tags'. The code on that page should be pasted into the end of the OnBeforeResponse function in the custom rules file, and the regex modified as appropriate.

coding, howto

Previous post Next post
Up