How to set different proxies for each GeckoFX instance?

梦想与她 提交于 2019-12-20 03:29:37

问题


To set a proxy we need to change the GeckoPreferences.User[""] and this is the same for all instances, for exemple:

GeckoPreferences.User["network.proxy.http"] = "x.com";

Is it possible to set a different proxy for each geckoFX instance?

If this is not possible, are there any kinds of workarounds?


回答1:


All GeckoFX browser controls running in the same application shares preferences (and cache, cookies etc). To run two GeckoFX web browser controls with separate preferences, the only options is to have them running in two different applications with two different profile directories.

Read here how to set profile directory: https://stackoverflow.com/a/20614986/2440



来源:https://stackoverflow.com/questions/24042354/how-to-set-different-proxies-for-each-geckofx-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!