FiddlerCore:如何处理TCP流量? [英] FiddlerCore: how to handle TCP traffic?

查看:349
本文介绍了FiddlerCore:如何处理TCP流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用fiddlercore作为反向代理 - 解析HTTP请求并根据HTTP标头将它们重定向到另一个端口。但我还需要处理TCP请求并将它们重定向到另一个端口。是否可以使用FiddlerCore?以某种方式确定它不是HTTP请求,只是TCP。

I want to use fiddlercore as a reverse proxy - to parse HTTP requests and redirect them to another ports depending on HTTP headers. But I need also handle TCP requests and redirect them to some another port. Is it possible using FiddlerCore? Somehow identify that it is not an HTTP request, just TCP.


我发现事件名为BeforeReturningError,但没有被调用。
只触发事件BeforeSocketAccept,但这还不够。当FiddlerCore无法解析HTTP标头时,我还没有发现任何其他可能被调用的事件。

I've found event named BeforeReturningError but it's not called. Only event BeforeSocketAccept is triggered but it's not enough. I haven't found any other events that might be called when FiddlerCore failed to parse HTTP headers.


推荐答案

Fiddler和FiddlerCore只处理HTTP / HTTPS流量。它们不是为处理原始TCP流量而设计的;你可以使用类似 netcat 的东西。

Fiddler and FiddlerCore only handle HTTP/HTTPS traffic. They are not designed to handle raw TCP traffic; you could use something like netcat for that.

这篇关于FiddlerCore:如何处理TCP流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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