如何拦截HTTP流量 [英] How to intercept Http traffic

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

问题描述

我试图建立一个C#应用程序,它将拦截传出HTTP请求和结果返回到旧系统。我们有一个遗留系统,使一个HTTP请求停产Web服务。我需要拦截走出去请求并将其发送到一个新的Web服务。当响应回来,我需要对其进行操作,然后将其发送到遗留系统。所有的代码需要坐在客户机上。我想沿着HTTP监听线的东西的工作,但我不跟任何地方获得,任何建议将不胜感激。

I am trying to develop a C# application that will intercept an outgoing Http request and return a result to an old system. We have a legacy system that makes an Http request to a discontinued web service. I need to intercept the out going request and send it to a new web service. When the response comes back I need to manipulate it then send it on to the legacy system. All the code needs to sit on the client machine. I thought something along the lines of http listener would work but I am not getting anywhere with that, any suggestions would be greatly appreciated.

推荐答案

谢谢大家对您的建议,这里就是答案。

Thanks everyone for your suggestions, here is the answer.

我用 Fiddler2 从埃里克·劳伦斯充当我的代理。然后,我写了一个小提琴手扩展,它拦截了特定的Http请求我感兴趣的,瞧。

I have used Fiddler2 from Eric Lawrence to act as a proxy for me. I then wrote a Fiddler extension which intercepted the particular Http request I was interested in and voila.

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

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