我如何监控所有进入的HTTP请求? [英] How do I monitor all incoming http requests?

查看:1638
本文介绍了我如何监控所有进入的HTTP请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要监视传入HTTP POST我的应用程序 GET 源自来自外部,有时在机器内部的请求。

I need to monitor my application from incoming http POST and GET requests originating from outside and sometimes inside the machine.

这可能吗?

被使用招但这只做不呼出呼入(从机外),或者有我错误地配置了吗?

Been using fiddler but this only does outgoing not incoming (from outside the machine) or have I configured it incorrectly?

这是因为这是意味着要接受我的web应用程序一个 POST 从外部服务器。

This is for my web app that is meant to be receiving a POST from an external server.

推荐答案

专家发现,以监视本地请求之间从我的机器流入我的机器所有流量的最佳方式:

Guys found the perfect way to monitor ALL traffic that is flowing locally between requests from my machine to my machine:

1)安装Wireshark的
2)当你需要捕获从本地主机流向本地主机的流量,那么你将很难使用Wireshark的网卡上的传入流量这只是显示器。做到这一点的方法是将路由添加到,这将迫使所有流量通过一个网关,这在网络接口上捕获窗口。

1) Install wireshark 2) When you need to capture traffic that is flowing from a localhost to a localhost then you will struggle to use wireshark as this only monitors incoming traffic on the network card. The way to do this is to add a route to windows that will force all traffic through a gateway and this be captured on the network interface.

要做到这一点只需键入:

To do this simply type:

CMD>路由添加192.168.20.30 192.168.20.1
[IP地址] [门户]

cmd> route add 192.168.20.30 192.168.20.1 [ip address] [gateway]

3)然后运行Wireshark的捕获(请确保您选择了流经它字节接口),然后进行过滤。

3) Then run a capture on wireshark (make sure you select the interface that has bytes flowing through it) Then filter.

新添加的路线上来了黑色。 (因为它们是本地地址)

The newly added routes will come up in black. (as they are local addresses)

这篇关于我如何监控所有进入的HTTP请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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