|08-27-2012, 04:27 PM||#1|
Change Proxy at runtime
I'm trying to change the proxy at runtime by calling:
Configuration.setValue(AVKey.URL_PROXY_H OST, proxy);
Configuration.setValue(AVKey.URL_PROXY_P ORT, port);
Before I set this, WorldWind tries retrieving tiles but is unable to because the proxy is not set. Once I do set the proxy, the retriever still tries to retrieve values as though the proxy wasn't set (trying to contact the server directly, rather than going through the proxy).
If I start worldwind with the proxy set, then remove the keys above, it immediately starts trying to retrieve tiles without using the proxy.
|08-27-2012, 11:49 PM||#2|
WWJ Technical Manager
Join Date: May 2007
As far as I can tell, the WW proxy code appears to be working. You could try setting those Configuration values in the worldwind.xml file or immediately as your program starts (before calling and WW methods), but you shouldn't need to do that.
Can anyone who is using proxies in WW verify that they are working?
|08-28-2012, 08:27 AM||#3|
Join Date: Jul 2012
I've been using them, and they're working fine. I've set them the same way you described above while the program is running (I allow the user to enter the details manually), and I've also used
EDIT: Are you also setting the "AVKey.URL_PROXY_TYPE" key?
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|WW1.3.2-Plugin: Layer Edit||canosso||Add-ons & Scripts||21||02-27-2010 04:37 AM|
|connecting to server||fleak||Technical Support||4||08-11-2009 09:37 PM|
|Small change enables automatically using authenticating proxy||Mark Gray||Developers' Corner||1||01-20-2009 03:04 AM|
|Proxy problems with one-way satellite broadband?||jem||Technical Support||8||09-30-2006 07:32 PM|
|Help improve HTTP proxy support||gilles||Technical Support||23||07-27-2005 09:30 PM|