Simmons Consulting, the Website of Toby Simmons

Archive for February, 2012

Fiddler and Bad Behavior, round two

22
Feb

I wrote about a conflict between Fiddler (the http debugging proxy for Windows) and Bad Behavior (the spam fighting plugin) way back in 2008. It looks like there is a new conflict between the latest of both products again. I noticed it while trying to debug some code on my blog.

Bad Behavior rejects requests made by Fiddler because Fiddler seems to add a second

  1. Connection: keep-alive

header when it forwards a request for you. As in my last post, you have to edit the CustomRules.js file to work around the problem. Near the top of the OnBeforeRequest() function, simply add the following code:

  1. oSession.oRequest.headers.Remove("Connection");

This will remove the second header and allow the request to be processed by Bad Behavior.