webwise
webwise

Reputation: 627

HTTP Debug Recorder and Auto-responder

Can you recommend a good HTTP Debug Recorder and Autoresponder? I usually use fiddler's autoresponder, but it does not enable rules to be set by POST information, only by querystring.

Upvotes: 2

Views: 1167

Answers (2)

EricLaw
EricLaw

Reputation: 57115

Fiddler can absolutely return automatically generated responses based on the content of a POST body, you simply cannot do it with the UI. Click Rules > Customize Rules, and enter your script inside the OnBeforeRequest handler.

if (oSession.uriContains("postpage.aspx") && 
  oSession.utilFindInRequest("mypostname=value"))
{
  oSession["x-replywithfile"] = "C:\\fakeresponse.htm"; 
}

Upvotes: 6

symcbean
symcbean

Reputation: 48387

For complex stuff, I'd recommend http::recorder and www::mechanize (PERL modules) see this article for an example.

But for simpler stuff, I use curl and/or a quick PHP script

HTH

C.

Upvotes: 1

Related Questions