Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 92559 invoked from network); 24 Nov 2008 11:06:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2008 11:06:08 -0000 Received: (qmail 22109 invoked by uid 500); 24 Nov 2008 11:06:17 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 21974 invoked by uid 500); 24 Nov 2008 11:06:16 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 21963 invoked by uid 99); 24 Nov 2008 11:06:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 03:06:16 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.200.174] (HELO wf-out-1314.google.com) (209.85.200.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 11:04:52 +0000 Received: by wf-out-1314.google.com with SMTP id 29so2311631wff.10 for ; Mon, 24 Nov 2008 03:05:37 -0800 (PST) Received: by 10.142.140.14 with SMTP id n14mr1593575wfd.292.1227524737869; Mon, 24 Nov 2008 03:05:37 -0800 (PST) Received: by 10.143.37.15 with HTTP; Mon, 24 Nov 2008 03:05:37 -0800 (PST) Message-ID: <1377e5190811240305m5a749049tdc78f31c2d78e030@mail.gmail.com> Date: Mon, 24 Nov 2008 12:05:37 +0100 From: "Pieter Coucke" To: httpclient-users@hc.apache.org Subject: NhttpClient and proxy MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org 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