配置Tomcat通过Localhost中的代理进行通信 - Fiddler [英] Configuring Tomcat to communicate through proxy in Localhost - Fiddler

查看:1027
本文介绍了配置Tomcat通过Localhost中的代理进行通信 - Fiddler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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中的代理进行通信 - Fiddler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆