[haXe] Automatic Proxy Detection

Jim Hayes Jim at primalpictures.com
Mon Jan 8 18:16:35 CET 2007


Worked fine for me, outputs null, which is correct for my setup (no
proxy).
Tested under windows XP sp2 with firefox 1.5 and IE6 installed.
Thanks Nicolas, it will be a useful tool to have.


-----Original Message-----
From: haxe-bounces at lists.motion-twin.com
[mailto:haxe-bounces at lists.motion-twin.com] On Behalf Of Nicolas
Cannasse
Sent: 08 January 2007 15:51
To: haxe at lists.motion-twin.com
Subject: [haXe] Automatic Proxy Detection

Hi list,

Some people using HTTP proxies were unable to use some tools such as
haxeLib. Before adding Proxy support to haxe.Http, I would like to get
sure that proxy settings can be retrieved in most of the cases.

Here's a small class that retrieve the Proxy Settings from various
system-specific configurations places. It seems to work for the
following OS/Browsers :

- Windows 2K : Firefox 1.5 Settings and IE 6 Settings
- OSX 10.4 : System/Safari Settings Firefox Settings
- Linux : Firefox Settings

I would like a lot people to test the following :

a) compile using "haxe -main ProxyDetect -neko pdetect.n"
b) run using "neko pdetect.n"

You should get a trace with either "null" (no proxy detected) or a proxy
structure of the kind { host : 127.0.0.1, port : 8080, auth : null }.

If you get an exception or if the printed settings does not correspond
to your system configuration, try watching the sources of the class and
send me some feedback/patch so I can improve it.

Best,
Nicolas



______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
______________________________________________________________________

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System.
______________________________________________________________________



More information about the Haxe mailing list