开发者

How can i debug HTTP sessions using Fiddler, just like i did with TcpTrace?

Im trying to st开发者_开发知识库op using TcpTrace and start working with Fiddler.

But i just can't setup fiddler to just start listening specified port and redirect all requests to the specified WS with another port.

All i want is just redirect and monitor all traffic from localhost:4747 -> webservice-ip:10000

Is there any solution for my problem ?

Thanks in advance.


Set Fiddler to listen on port 4747, and then edit your CustomRules.js (menu->Rules->Customize Rules). Putting something like this into the OnBeforeRequest method should help:

if (oSession.host=="localhost:4747") {
  oSession.host="external:1000";
}

if you want all traffic passing through Fiddler to go to the external host, you can simply use

oSession.host="external:1000";

(where external is the hostname of the external host)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜