Closed GoogleCodeExporter closed 9 years ago
You can get the current mac OS X proxy settings via
http://developer.apple.com/library/mac/#documentation/Networking/Reference/SCDyn
amicStoreCopySpecific/Reference/reference.html with the function
SCDynamicStoreCopyProxies. Since that is only a native c function, you need to
use JNI.
You can also find an example here:
http://developer.apple.com/library/mac/#qa/qa2001/qa1234.html and within the
network source for Qt4
(http://svn.netlabs.org/repos/qt4/trunk/src/network/kernel/qnetworkproxy_mac.cpp
). Hope that helps.
Original comment by konra...@gmx.de
on 30 Jan 2011 at 7:07
Unfortunately there seem to be some problems to override the proxy settings in
Java under OS X
(http://lists.apple.com/archives/java-dev/2009/Jun/msg00148.html).
Original comment by konra...@gmx.de
on 30 Jan 2011 at 7:15
Thanks a lot for all this info.
I currently have no access to an Mac and have absolutly no experience with it.
JNI code loading, library format and loading, c compiler, ...
So I could try to build a library for OSX but have no chance to debug or test
it.
Therefore support for OSX is very limited at the moment and I still hope that I
get some production quality code contribution some day or buy a Mac one day and
do it myself but this may take some time ;-)
Problems like the mentioned one is the reason why I do not rely on the VM proxy
features but wrote proxy-vole
Have fun,
- Rossi
Original comment by rosstaus...@googlemail.com
on 31 Jan 2011 at 6:01
Small update of the status of this request.
I finally have access to OSX and started to implement support for OSX.
Proxy settings are stored in OSX in a plist XML file. I'm going to read the
settings from there and setup a proxy selector in Java. This will allow me to
support OSX without writing native code.
Initial support for this is already in the repository.
Have fun,
- Rossi
Original comment by rosstaus...@googlemail.com
on 5 May 2011 at 8:50
I have now deployed a new version that includes support for OSX.
It is not very well tested yet but for me it works.
Have fun,
- Rossi
Original comment by rosstaus...@googlemail.com
on 15 May 2011 at 6:55
I'm having some difficulties...
when I call ProxySearch.getProxySelector() under OSX using default strategies,
i get "null" value as return. (proxy is configured either as PAC/Manual at OS
level).
Is it a configuration problem of some kind?
Original comment by liro...@gmail.com
on 24 May 2011 at 12:16
Hello Liro,
Sorry for my late reply I was away for some weeks and then forgot about this
issue.
Do you still have the problem? If yes could you please send me the following
information from your OSX installation:
- OSX version
and the file that is located at
/Library/Preferences/SystemConfiguration/preferences.plist
This file will contain the proxy settings that are selected. I need to have a
look at it to find out why I the parsing fails.
Please send the information at rosstauscher (et) gmx.de
The OSX code is rather new and a little bit untested. It may be that there is
still a bug in this.
Have fun,
- Rossi
Original comment by rosstaus...@googlemail.com
on 20 Jun 2011 at 7:22
Original comment by rosstaus...@googlemail.com
on 27 Jul 2012 at 9:31
Original issue reported on code.google.com by
rosstaus...@googlemail.com
on 30 Jan 2010 at 9:46