使用代理服务器与Web浏览器控件 [英] Using Proxy with web browser control

查看:149
本文介绍了使用代理服务器与Web浏览器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是它可以使用两个网络浏览器与不同的代理控制不写注册表。

is it possible to use two web browser controls with different proxies without writing the registry.

或者可能有什么解决办法?

or there might be any solution ?

推荐答案

您无法使用Web浏览器控件做到这一点。 InternetSetOption允许您设置代理服务器,但你的选择是唯一的所有进程或在这个过程。不能为一个单一的控制单独设置代理。如果有什么不同的关于交通(例如,一个控制变为1服务器,其他的去到另一个),你可以配置为使用代理服务器配置脚本(搜索FindProxyForURL)开往不同的服务器不同的代理链通信的过程。

You cannot do this with the Web Browser Control. InternetSetOption allows you to set a proxy, but your choices are only "For all processes" or "For this process". You cannot set the proxy individually for a single control. If there's something distinct about the traffic (e.g. one control goes to 1 server, the other goes to another) you could configure the process to use a Proxy Configuration Script (search for FindProxyForURL) to chain traffic bound for different servers to different proxies.

如果你设置代理服务器,你应该使用InternetSetOption而不是直接操纵注册表。

If you do set the proxy, you should use InternetSetOption rather than directly manipulating the registry.

(作为解决方法是,你可以把FiddlerCore到你的过程中,设置过程中使用FiddlerCore,然后有FiddlerCore从每个控制到不同的上行网关发送流量,但是这需要你找到一些方法来从每个控制区分流量。)

(As a workaround, you COULD put FiddlerCore into your process, set your process to use FiddlerCore, and then have FiddlerCore send traffic from each control to a different upstream gateway, but that requires that you find some way to distinguish traffic from each control.)

这篇关于使用代理服务器与Web浏览器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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