Tomcat在标准8080端口的本地主机上运行。当tomcat调用在同一服务器上运行的服务(soap / rest)时,我想通过fiddler捕获它。
Tomcat is running in my localhost on standard 8080 port. When tomcat calls a service (soap/rest) running in the same server, I would like to capture it through fiddler.
基本上,tomcat发出的任何请求都应该通过提琴手捕获。目前,它向另一个运行同一台机器的服务发送请求,而该服务又调用了我想要捕获的Amazon AWS。
Basically, any request that tomcat sends out, should be captured through Fiddler. Currently, it sends out request to another service running the same machine and that service in turn calls Amazon AWS, which I would like to capture as well.
任何人都可以帮忙吗?请注意,这与通过代理到服务器的传统Web请求相反。
Can anyone help? Note that this is opposite of traditional web request through proxy to the server.
我也对任何其他替代方案持开放态度。
I am open to any other alternatives as well.
推荐答案请查看如何从Tomcat Java应用程序捕获SOAP消息到外部服务器?,以获取有关为Tomcat设置代理的信息。
Please have a look at How to capture SOAP messages from a Tomcat Java app to an external server? for information on setting the proxy for Tomcat.
正确的JVM参数应如下所示: -Dhttps.proxyHost = 127.0.0.1 -Dhttps.proxyPort = 8888 -DproxySet = true -DproxyHost = 127.0.0.1 -DproxyPort = 8888
The correct JVM parameters should look like: -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8888
更多推荐
配置Tomcat通过Localhost中的代理进行通信
发布评论