开发者

HTTP Debug Recorder and Auto-responder

开发者 https://www.devze.com 2023-01-02 12:28 出处:网络
Can you recommend a good HTTP Debug Recorder and Autoresponder? I usually use fiddler\'s autoresponder, b开发者_如何学JAVAut it does not enable rules to be set by POST information, only by querystring

Can you recommend a good HTTP Debug Recorder and Autoresponder? I usually use fiddler's autoresponder, b开发者_如何学JAVAut it does not enable rules to be set by POST information, only by querystring.


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"; 
}


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消