配置Tomcat通过Localhost中的代理进行通信

编程入门 行业动态 更新时间:2024-10-17 19:21:37
本文介绍了配置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中的代理进行通信

本文发布于:2023-11-14 19:56:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588373.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:通信   Tomcat   Localhost

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!