本文介绍了如何为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手动设置上游代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 15:47