HTTP调试记录器和自动响应器

web*_*ise 2 debugging http fiddler

你能推荐一个好的HTTP Debug Recorder和Autoresponder吗?我通常使用fiddler自动回复器,但它不能通过POST信息设置规则,只能通过查询字符串来设置.

Eri*_*Law 6

Fiddler绝对可以根据POST主体的内容返回自动生成的响应,您根本无法使用UI执行此操作.单击"规则">"自定义规则",然后在OnBeforeRequest处理程序中输入脚本.

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