anonymous2ch / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Win32: use native WinHttpGetProxyForUrl #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On Win32, use the native system function
[http://msdn.microsoft.com/en-us/library/aa384097%28VS.85%29.aspx
WinHttpGetProxyForUrl] which already handles PAC.

Original issue reported on code.google.com by olivier.mengue on 12 Mar 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Indeed, I would like to use this.  Can you provide a short example of how to do 
so?

Also, my only concern is making sure that libproxy functions the same on all 
platforms.  I don't suspect this will be a problem, but it is something we'll 
watch 
for.

Original comment by npmccallum@gmail.com on 29 Mar 2010 at 5:34

GoogleCodeExporter commented 9 years ago
http://stackoverflow.com/questions/202547/how-do-i-find-out-the-browsers-proxy-s
ettings

Original comment by jec...@gmail.com on 27 Jul 2010 at 5:52

GoogleCodeExporter commented 9 years ago
Chrome has examples of how to do this. Look at 
net/proxy/proxy_resolver_winhttp.cc

(libproxy support in Chrome should be based on that file too).

Original comment by dwmw2b@gmail.com on 8 Dec 2010 at 12:23

GoogleCodeExporter commented 9 years ago
Sample implementation attached. Simply replace the content of config_w32reg.cpp 
or add as new .cpp file. Tested and works as expected.
The sample can be improved further with better conversion from IE proxy bypass 
list to ignore list and with IDNA support.

Original comment by zhivko.t...@gmail.com on 2 Jul 2015 at 6:18

Attachments: