c# - 如何用c#拦截并更改http请求

标签 c# http interceptor

当应用程序向服务器发出 http get 请求时是否可以拦截?

我需要在某些网站打开时进行拦截,并在请求中添加一些自定义的http header 。

该应用程序将作为系统托盘中的监视器...

我正在使用c#。谢谢!

最佳答案

您应该看看Fiddler Core

FiddlerCore allows you to integrate HTTP/HTTPS traffic viewing and modification capabilities into your .NET application, without any of the Fiddler UI.

关于c# - 如何用c#拦截并更改http请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9642289/

相关文章:

c# - 如何在 VS2010 C# 控制台应用程序中将我的 App.config 编译成我的 exe?

c# - 获取表单的父表单名称

php - 在基于 C 的 Web 服务器上执行和输出 PHP - 卡住了!

java - 您将如何拦截所有异常?

javascript - 您如何在 EmberJs 应用程序中将所有 HTTP 请求设为 'intercept'?

c# - UWP 应用 : FileOpenPicker PickSingleFileAsync() can't await

c# - ISO UTC DateTime 格式作为 MVC 6 API 响应中的默认 json 输出格式

mongodb - 我无法使用 angular 2 发布到我的 mongodb 服务器

javascript - 捕获加载页面完成的 HTTP 请求

rest - CXF 休息 : How can I retrieve the POJO object from the message in an interceptor before it gets marshal'd?