在C ++中拦截服务器上的任何请求 [英] Intercept any request on a server in C++
本文介绍了在C ++中拦截服务器上的任何请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我想拦截我服务器上的任何http请求。所以,从我的笔记本电脑,我想拦截在我的服务器(不同的机器)上发出的任何请求。但我不知道在c ++或python中这样做。
我尝试过:
我试过小提琴手,但不知道它是如何起作用的
Hello guys, I wanna intercept any http request on one of my server. so from my laptop I wanna intercept any request that is made on my server (different machine). But I have no Idea of doing that in c++ or python.
What I have tried:
I tried fiddler but don't know how it is really works
推荐答案
你不能从另一个系统那里做,因为你没办法了解服务器何时收到请求。假设这是一个网络服务器,你在谈论你需要在那里添加一些代码,以便在每次收到请求时向你发送某种消息。
You cannot do it from a different system as you have no way of knowing when the server receives a request. Assuming this is a webserver you are talking about you need to add some code in there to send you some sort of message every time a request is received.
这篇关于在C ++中拦截服务器上的任何请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文