hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastiaan van Erk <sebs...@sebster.com>
Subject default proxy in httpclient 4.0-alpha3
Date Wed, 02 Apr 2008 15:12:16 GMT
Hi,

I'm trying to set a default proxy in httpclient 4.0-alpha3, and I'm
doing this:

HttpRouteParams.setDefaultProxy(client.getParams(), proxy);

However, this is not working, i.e., it is just using a direct route.
When I do this however on the post:

HttpRouteParams.setDefaultProxy(post.getParams(), proxy);

The proxy IS used.

Is there a way to set a default proxy globally instead of having to set
it per request?

Regards,
Sebastiaan


Mime
View raw message