[英]Catch HTTP requests (including ajax) from the client
I would like to write code that can catch: 我想编写可以捕获的代码:
Is it even possible? 可能吗 How do I do that?
我怎么做?
I don't get completely what you are trying to achieve and at what point you want to instrument the code. 我没有完全了解您要达到的目标以及在什么时候要检测代码。 But in case this helps, this something that can be achieved through HTTP Proxy .
但是,如果这有帮助,可以通过HTTP Proxy实现。 On a network you can redirect the traffic trough a Proxy server where in you can have your plugged in modules that can scan the outgoing requests and take some action(action could be reporting to some other server).
在网络上,您可以通过代理服务器重定向流量,在其中您可以插入模块,这些模块可以扫描传出的请求并采取某些措施(该措施可能会报告给其他服务器)。 Of course you won't need to instrument anything here.
当然,您无需在此处进行任何检测。 Most of the internet firewalls peg on this I guess.
我猜,大多数Internet防火墙都与此挂钩。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.