Configuring Tomcat to communicate through proxy in Localhost - Fiddler

橙三吉。 提交于 2020-01-13 12:02:07

问题


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.

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.

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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/23484911/configuring-tomcat-to-communicate-through-proxy-in-localhost-fiddler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!