[OSM-talk] A proxy problem with the applet or what?

Dave osm.list at randomjunk.co.uk
Mon Jan 22 13:47:18 GMT 2007


On 1/22/07, Nick Burch <openstreetmap at gagravarr.org> wrote:
>
> On Mon, 22 Jan 2007, Dave wrote:
> >> Quite possibly. I don't think that most of the applet is aware of http
> >> proxies, and just assumes it can connect to the internet directly.
> >
> > The proxy should be transparent to the Java application -- the applet
> > shouldn't need to know anything.
>
> It makes use of the commons httpclient library to do most of its data
> fetching, rather than built-in applet calls. I'm not sure how that affects
> things


Yeah, that'll stop auto-configuration, or any of the Java settings.
What needs to happen is the HttpClient's host configuration should be set to
the right values. Something along the lines of

client.getHostConfiguration().setProxy(proxyHost,proxyPort);

On Java 5.0 you can use ProxySelector to figure out what values to use. On
older Javas you kind of have to rely on two environment vars which the
browser plugin may or may not have setup correctly. I don't know what the
applet's java target version is these days.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070122/888cb79f/attachment.html>


More information about the talk mailing list