如何为Fiddler Core手动设置上游代理?

编程入门 行业动态 更新时间:2024-10-18 10:19:38
本文介绍了如何为Fiddler Core手动设置上游代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我希望能够通过上游代理重定向来自提琴手代码的http请求,我希望能够在运行时指定该请求.

I'd like to be able to redirect http requests from fiddler code through upstream proxys, which I want to be able to specify at runtime.

我已经浏览过FiddlerApplication函数,但没有找到合适的东西,也没有找到任何与文档匹配的东西(除了可以指定启动标记以使用系统的代理外)作为上游代理.

I've looked through FiddlerApplication functions, and I don't see anything that might fit, as well as I haven't found anything matching in the documentation (except that you might specify a startup flag to use system's proxy as upstream proxy).

在运行时指定/更改Fiddler核心代理的最佳方法是什么?

What is the best way to specify/change fiddler core proxy at runtime?

推荐答案

如果要将每个请求发送到代理,并且该代理不是系统的默认值:在发送每个请求之前,请指定 X -Session上的-OverrideGateway 标志.在您的BeforeRequest处理程序中,添加以下行:

If you want to send each request to a proxy, and that proxy isn't the system's default: Before each request is sent, specify the X-OverrideGateway flag on the Session. Inside your BeforeRequest handler, add the following line:

oSession["X-OverrideGateway"] = "someProxy:1234";

-埃里克

更多推荐

如何为Fiddler Core手动设置上游代理?

本文发布于:2023-11-14 19:51:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588366.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:何为   Fiddler   Core

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!