Hi Lars, I am not that familiar with accessing URLs through proxies using Java. Other than setting System properties, should anything else be required?
This URL suggests that just system properties should be sufficient, although for authenication, you may need to set an Authenticator: http://www.developer.com/java/other/article.php/1551421 Try that, and let me know if it still doesn't work. Cheers Richard On Tue, 2007-02-20 at 15:53 +0100, Lars Martin wrote: > Hi folks. > > I didn't find any hint on how to use an authorizing proxy for my > WebMapServer testcase. > > System.setProperty( "proxySet", "true" ); > System.setProperty( "proxyHost", "xyz" ); > System.setProperty( "proxyPort", "80" ); > System.setProperty( "proxyUserName", "abc" ); > System.setProperty( "proxyPassword", "abc" ); > System.setProperty( "http.proxyHost", "xyz" ); > System.setProperty( "http.proxyPort", "80" ); > System.setProperty( "http.proxyUserName", "abc" ); > System.setProperty( "http.proxyPassword", "abc" ); > > URL url = new > URL("http://www.umwelt.sachsen.de/de/wu/umwelt/lfug/lfug-internet/infosysteme/wmsconnector/com.esri.wms.Esrimap"); > WebMapServer wmsServer = new WebMapServer( url ); > WMSCapabilities capabilities = wmsServer.getCapabilities(); > System.out.println( capabilities.getVersion() ); > > But this returns with http error code 407 (proxy authentication required) > > Any help would be appreciated. Thanks. Lars > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
