how use fiddler to check traffic of a web service

2019-08-23 01:46发布

问题:

how can we use fiddler to check traffic of a web service(xml) between two web sites?
http://www.fiddler2.com/fiddler2/

i have created two subdomains for my web site.
for example my web site is like this :

www.site.com

and those subdomains are like below :

www.sub1.site.com

www.sub2.site.com

these sites are on a web server (vps) and i am waching them with my local system(fiddler has been installed on my local system).
www.sub1.site.com is calling the www.sub2.site.com web service.
is it possible to capture this web service data with breakpoint like http and other stuff?
i checked fiddler many many times, but could n't find how?
if not what is the XML tab in Fiddler?

really appreciate for answer and help

回答1:

You can't use Fiddler2 for this. Fiddler2 is a web proxy that routes your browser requests through a proxy running on your own machine. So it only works if the "client" that is making the HTTP request is local. Your browser may, for example, initiate an HTTP request to www.sub1.site.com, but the call from www.sub1.site.com to www.sub2.site.com isn't one that will route through Fiddler2. Think of Fiddler2 as sitting between your browser and whatever site the browser is trying to reach.

If you have access to install Fiddler2 on the server (sub1), you might consider http://www.fiddler2.com/fiddler/help/reverseproxy.asp for some more complex scenarios. But then, if you have access to the server, there are other ways to monitor that may be better options (log files, as an example).