Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 67061 invoked from network); 9 Oct 2005 19:17:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2005 19:17:34 -0000 Received: (qmail 91400 invoked by uid 500); 9 Oct 2005 19:17:34 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 91205 invoked by uid 500); 9 Oct 2005 19:17:33 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 91194 invoked by uid 99); 9 Oct 2005 19:17:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 12:17:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mbecke@gmail.com designates 66.249.82.199 as permitted sender) Received: from [66.249.82.199] (HELO xproxy.gmail.com) (66.249.82.199) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 12:17:36 -0700 Received: by xproxy.gmail.com with SMTP id s8so825078wxc for ; Sun, 09 Oct 2005 12:17:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I1nXzAsQOI1+P9bDfFd1fSYnjf+NAmOjXgO4P5J36YU2e98HCHEf7gz/gUV4rNqDCR5fGEkPT6n7eIpb2rg9aBKd+bXyhQBtz8gE9ewAfrq+G+ySEzStnTTuYEEvQLPznoOJjh5feSEJujad3d4+njnmOh6HZR/kxUbnen374l8= Received: by 10.70.87.14 with SMTP id k14mr3249122wxb; Sun, 09 Oct 2005 12:17:12 -0700 (PDT) Received: by 10.70.25.17 with HTTP; Sun, 9 Oct 2005 12:17:12 -0700 (PDT) Message-ID: <78f7873e0510091217p6790c8cub505b8dca51bdbea@mail.gmail.com> Date: Sun, 9 Oct 2005 15:17:12 -0400 From: Michael Becke To: HttpClient User Discussion Subject: Re: working behind a proxy In-Reply-To: <60e313530510082133g296f4da6wb6b11a58f8959db1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <60e313530510082133g296f4da6wb6b11a58f8959db1@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Sam, HostConfiguration.setProxy() is where you want to start. You can set it per HttpClient instance via HttpClient.getHostConfiguration() or per request by using HttpClient.executeMethod(hostConfig, method, state). Mike On 10/9/05, Sam Hwang wrote: > Hi, > I am working behind a proxy, when I use HttpClient it always timeout at t= he > end. How can I configure it to adapt the proxy? Thx! > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org