Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 50725 invoked from network); 21 Nov 2005 07:46:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Nov 2005 07:46:30 -0000 Received: (qmail 24753 invoked by uid 500); 21 Nov 2005 07:46:29 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 24737 invoked by uid 500); 21 Nov 2005 07:46:29 -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 24726 invoked by uid 99); 21 Nov 2005 07:46:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2005 23:46:29 -0800 Received-SPF: pass (asf.osuosl.org: domain of Benjamin.Janes@se.ibm.com designates 195.212.29.137 as permitted sender) Received: from [195.212.29.137] (HELO mtagate4.uk.ibm.com) (195.212.29.137) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2005 23:48:02 -0800 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate4.uk.ibm.com (8.12.10/8.12.10) with ESMTP id jAL7k634234676 for ; Mon, 21 Nov 2005 07:46:06 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id jAL7k6KA136700 for ; Mon, 21 Nov 2005 07:46:06 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11/8.13.3) with ESMTP id jAL7k6ms010474 for ; Mon, 21 Nov 2005 07:46:06 GMT Received: from d06ml711.portsmouth.uk.ibm.com (D06ML711.portsmouth.uk.ibm.com [9.149.36.163]) by d06av04.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id jAL7k6CP010468 for ; Mon, 21 Nov 2005 07:46:06 GMT Subject: Proxy Authentication To: httpclient-user@jakarta.apache.org X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: Benjamin Janes Date: Mon, 21 Nov 2005 08:46:03 +0100 X-MIMETrack: Serialize by Router on D06ML711/06/M/IBM(Release 6.53HF247 | January 6, 2005) at 21/11/2005 08:46:05 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have a site i want to reach www.mysite.com/index.html a proxy proxy.acompany.com and port 8080 and proxy username and pwd proxyUser & proxyPwd how do I set the proxy username / pwd, namlely what is the realm? and a= nd what do I enter in [[WHAT GOES HERE]], myState =3D new HttpState(); myState.setCookiePolicy(CookiePolicy.RFC2109); ....... UsernamePasswordCredentials upc =3D new UsernamePasswordCredentials(proxyUser ,proxyPwd); myState.setProxyCredentials([[WHAT GOES HERE]],"proxy.acompany.com",upc); ....... myClient.setState(myState); I have it working for prxies without authentication.... Med v=E4nliga h=E4lsningar/Best regards Benjamin Janes ------------------------------------------ System Development IBM Sverige AB V. Varvsgatan 19, 211 19 Malm=F6 Cell Phone no.: +46 (0)707 93 62 89 e-mail: benjamin.janes@se.ibm.com= --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org