Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 91502 invoked from network); 12 Nov 2001 16:33:44 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Nov 2001 16:33:44 -0000 Received: (qmail 14768 invoked by uid 97); 12 Nov 2001 16:33:44 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 14750 invoked by uid 97); 12 Nov 2001 16:33:43 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 14719 invoked from network); 12 Nov 2001 16:33:42 -0000 X-Originating-IP: [192.215.6.8] Reply-To: rwaldhof@us.britannica.com From: "Rodney Waldhoff" To: commons-dev@jakarta.apache.org Bcc: Subject: RE: Questions on HttpClient - Proxy Setting Date: Mon, 12 Nov 2001 16:33:41 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Nov 2001 16:33:42.0245 (UTC) FILETIME=[CA5D9950:01C16B97] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Sven, sorry it took so long to get back to you, I've been swamped. Currently, HTTP Client doesn't pay any attention to the proxySet, proxyHost and proxyPort system properties. You can change the proxy configuration at any time as follows: HttpClient client; HttpMethod method1; HttpMethod method2; client.startSession(host,port,proxyHost,proxyPort); client.executeMethod(method1); client.endSession(); client.startSession(host2,port2,proxyHost2,proxyPort2); client.executeMethod(method1); client.endSession(); or, using without using HttpClient itself: HttpState state; HttpMethod method1; HttpMethod method2; HttpConnection conn1 = new HttpConnection(host,port, proxyHost,proxyPort); conn1.open(); method1.execute(state,conn1); conn1.close(); HttpConnection conn2 = new HttpConnection(host2,port2, proxyHost2,proxyPort2); conn2.open(); method2.execute(state,conn2); conn2.close(); Hope that helps, - Rod _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: For additional commands, e-mail: