Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 93309 invoked from network); 3 Feb 2006 19:25:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 19:25:21 -0000 Received: (qmail 50148 invoked by uid 500); 3 Feb 2006 19:25:15 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 49974 invoked by uid 500); 3 Feb 2006 19:25:14 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 49961 invoked by uid 99); 3 Feb 2006 19:25:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 11:25:14 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of e.dominguez@ticino.com designates 195.190.166.60 as permitted sender) Received: from [195.190.166.60] (HELO mail1.ticino.com) (195.190.166.60) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 11:25:12 -0800 X-Spam-Score: 1 Received: from [10.77.1.104] (unverified [81.63.66.213]) by ticino.com (Rockliffe SMTPRA 6.1.20) with ESMTP id for ; Fri, 3 Feb 2006 20:24:50 +0100 Message-ID: <43E3ADFA.5080208@ticino.com> Date: Fri, 03 Feb 2006 20:24:42 +0100 From: "E. Dominguez" User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [NET] ftp requires 2 passwords (a proxy password) References: <20060203085844.31269f58.e.dominguez@ticino.com> <20060203092303.ce0378f3.e.dominguez@ticino.com> In-Reply-To: <20060203092303.ce0378f3.e.dominguez@ticino.com> Content-Type: multipart/alternative; boundary="------------050105000200050809010308" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------050105000200050809010308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit now i have a doubt... should i use the sendCommand( "password" ) or the pass( "password" ) to pass the second requested password? e.dominguez wrote: >Is it correct an approach like: >[CODE] >//(...) >FtpClient myc = new FtpClient( ); //init ftpclient >myc.connect( "proxy.acme.ch", 21 ); //connect to server >myc.login( "far-username@ftp.far-server.ch proxy_tech_userename", "far_password" ); //login >if( myc.getReplyCode() == FtpReply.CODE_332 ){ //check if reply is 332 > myc.sendCommand( "proxy_tech_password" ); >} >//(...) >[/CODE] >Can this be a possible solution? Sorry that I ask but I actually can't test... ;-) >- - - - - - - - - - - - - - - - - >On Fri, 3 Feb 2006 08:58:44 +0100 >"e.dominguez" wrote: > > >>Hi. >>I trying to connect to an ftp server through a proxy by a customer. >>the enterprise has a proxy server, so for the connection I have received this 'connection example' (it's in german but i think is understandable): >> >>Sobald Sie die UserID und das Passwort f�r den Technical Account erhaltet haben, m�ssen Sie folgende Syntax anwenden: >>(Beispiel basiert auf W32 FTP-Client). >> >>c:\>ftp proxy.acme.ch >>Verbindung mit proxy.acme.ch wurde hergestellt. >>220 Blue Coat FTP Service >>Benutzer (proxy.acme.ch:(none)): far-username@ftp.far-server.ch proxy_tech_userename >>331 Enter password. >>Kennwort: far_password >>332 Enter proxy password. >>Kennwort: proxy_tech_password >>Hier nochmal die technische Syntax, die angewendet werden soll: >>Usage: USER username@hostname proxyusername >> PASS password >> ACCT proxypassword >> >>How can i pass the second password (332/ACCT) as connection property for my pgm? >> >>Thanx. Best regards. e.dominguez >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > --------------050105000200050809010308--