Gecko代理Ip和端口在同一个文本框中

时间:2014-01-27 19:45:18

标签: vb.net textbox ip port gecko

我想知道是否有可能制作一个壁虎代理并在像webbrowser这样的文本框中插入ip和port。 有可能吗?

我已尝试过此代码

Skybound.Gecko.GeckoPreferences.User("network.proxy.type") = 1; 
Skybound.Gecko.GeckoPreferences.User("network.proxy.http") = TextBox2.Text; 
Skybound.Gecko.GeckoPreferences.User("network.proxy.http_port") = 8080; 

并试图改变

skybound.gecko.geckopreference.user("network.proxy.http")=textbox2 & ("network.proxy.http_port") = textbox2.text 

将ip和端口放在同一个文本框中并不起作用。

1 个答案:

答案 0 :(得分:0)

尝试: 修改文件:xulrunner.js并添加到end:

pref("network.proxy.http", "162.208.49.45");
pref("network.proxy.http_port", 7808);
pref("network.proxy.type", 1);

您之前编写导航方法的代码:

    Skybound.Gecko.GeckoPreferences.Default("network.proxy.type") = 1
    Skybound.Gecko.GeckoPreferences.Default("network.proxy.http") = 'You proxy ip'
    Skybound.Gecko.GeckoPreferences.Default("network.proxy.http_port") = Integer.Parse('Proxy_port_in_int')
相关问题