I was reviewing the mozWifiManager API [1] and I noticed the setHttpProxy 
method.  I expected it to set a HTTP proxy on my wifi connection, but I can't 
seem to get it work, and its not documented on mdn yet [2]. 

I tried connecting to the system app in the app manager (debugger) and 
executing the following commands to set a http proxy for my wifi connection;

var r = navigator.mozWifiManager.setHttpProxy(
        navigator.mozWifiManager.connection.network, 
        {httpProxyHost:'192.168.0.100',httpProxyPort:8888}
)

The DOMRequest came back successful, but when I browse, or load an app,  I am 
not seeing any traffic in the proxy running at 192.168.0.100:8888 

Any ideas what I am doing wrong? I tried also passing the SSID instead of the 
network object, but neither seemed to work.  Or does this feature not work yet 
? Or does it not do what I think it does?

PS This is nightly eng build on hamachi (based on latest vendor build).

[1] http://mxr.mozilla.org/mozilla-central/source/dom/wifi/nsIWifi.idl#158
[2] https://developer.mozilla.org/en-US/docs/WebAPI/WiFi_Information

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to