Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Tomcat to communicate through proxy in Localhost - 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.

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.

like image 328
Kevin Rave Avatar asked Jan 11 '23 15:01

Kevin Rave


1 Answers

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

like image 154
EricLaw Avatar answered Jan 18 '23 14:01

EricLaw