Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7D3DD2CA for ; Mon, 24 Sep 2012 20:57:04 +0000 (UTC) Received: (qmail 19965 invoked by uid 500); 24 Sep 2012 20:57:04 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 19913 invoked by uid 500); 24 Sep 2012 20:57:04 -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 19900 invoked by uid 99); 24 Sep 2012 20:57:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 20:57:04 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 20:56:56 +0000 Received: from [192.168.1.147] (77-57-197-206.dclient.hispeed.ch [77.57.197.206]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id D7D32B801ED for ; Mon, 24 Sep 2012 22:56:34 +0200 (CEST) Message-ID: <1348520193.3043.16.camel@ubuntu> Subject: Re: Set outgoing connection port on httpclient From: Oleg Kalnichevski To: HttpClient User Discussion Date: Mon, 24 Sep 2012 22:56:33 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2012-09-24 at 16:04 +0200, Jose Escobar wrote: > Hello to all, > > A paranoid firewall rule force me to use a range of outgoing ports on > a httpclient based aplication. Is there an easy way to configure this > on httpclient? Try using the ConnRoutePNames#LOCAL_ADDRESS ('http.route.local-address') parameter http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e490 Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org