hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pieter Coucke" <pieter.cou...@onthoo.com>
Subject NhttpClient and proxy
Date Mon, 24 Nov 2008 11:05:37 GMT
Hi,

I would like to use a proxy (Squid) with the example code from
http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java.

I tried to set the params with
params.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

and also in the HttpRequestExecutionHandler#initializeContext() I tried it with
context.setAttribute(ExecutionContext.HTTP_PROXY_HOST, proxy);

However, both without success.  Can someone maybe point me to what I'm
missing here?

Thanks a lot!

Pieter

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message