Configuring Tomcat to communicate through a proxy in Localhost - Fiddler

Tomcat works in my local host on the standard port 8080. When tomcat calls a service (soap / rest) running on the same server, I would like to capture it through a violinist.

Basically, any request that tomcat sends should be committed via Fiddler. He is currently sending a request to another service running on the same computer, and this service in turn calls Amazon AWS, which I would also like to grab.

Can anyone help? Please note that this is the opposite of a traditional web request through a proxy server.

I am also open to any other alternatives.

+4
source share
1 answer

Please see How to capture SOAP messages from a Tomcat Java application to an external server? for proxy configuration information for Tomcat.

The correct JVM parameters should look like this: -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8888

+9
source

Source: https://habr.com/ru/post/1539366/