Hello all, and thanks in advance for your help

 

 

I am trying to download files from a server (JScape 6.3)  over FTPS using
lftp.  I am able to connect and download some of the time but other times
the post login commands are rejected or simply hang.  It may be
significant that the login commands work every time.  

 

On a side note- I am seeing ssl_shutdown issues of the sort described
here-

 <http://curl.haxx.se/mail/lib-2007-01/0211.html>
http://curl.haxx.se/mail/lib-2007-01/0211.html  Yes I know it's a curl
post but it is a great description of the problem.

 

 

But I think the majority of my problems might be from a charset mismatch.
There are various problems which probably have the same root.  One example
is: the CWD command fails almost every time even though the command in my
debug log looks just fine.  Someone on the server side gave me a log
snippet showing stray special characters mixed in with my CWD command.

 

Lftp sends a FEAT and the server responds that it supports UTF8 so then
lftp sends an OPTS UTF8 which the server rejects as superfluous.

 

I have used coreFTP to try to connect to the server with UTF8 as it's
charset and it hangs on login so I interpret that to mean the server
doesn't support UTF8.  

 

I have tried setting ftp:charset to a few different values (us-ansi, ASCII
etc) but that doesn't seem to change the behavior I am seeing.  Lftp still
sends the OPTS UTF8.

 

 

My question is: what happens after the failed OPTS command?  Does lftp
silently assume another charset or does it still think that UTF8 is ok?
Or is my problem likely somewhere else entirely? 

 

 

I have pasted a log snippet below showing the problem.  

 

$  lftp -d -f lftpCommands.txt

  

---- Resolving host address...

open `[ADDRESS REMOVED]' [Resolving host address...]

                                                            

---- 1 address found: [ADDRESS REMOVED]

---- Connecting to [ADDRESS REMOVED] ([ADDRESS REMOVED]) port 21

cd `intervaldata' [Connecting...]

                                   

<--- 220 Service ready for new user.

---> FEAT

cd `intervaldata' [FEAT negotiation...]

                                         

<--- 211-Supported extensions:

<---  CLNT

<---  LANG EN*

<---  CCC

<---  PBSZ

<---  PROT

<---  AUTH

<---  APSV

<---  EPRT

<---  EPSV

<---  LPRT

<---  LPSV

<---  SPSV

<---  XCUP

<---  XMKD

<---  XPWD

<---  XRMD

<---  MDTM

<---  MFMT

<---  MFCT

<---  SIZE

<---  XCRC

<---  XMD5

<---  SITE ZONE

<---  SITE PSWD

<---  MLSD

<---  MLST

<---  UTF-8

<---  UTF8

<---  MODE Z

<--- 211 End

---> AUTH TLS

cd `intervaldata' [TLS negotiation...]

                                        

<--- 234 Security exchange completed.

---> CLNT lftp/4.0.10

cd `intervaldata' [Logging in...]

                                   

Certificate depth: 0; subject: /C=US/ST=New York/L=Armonk/O=International
Business Machines Corporation/OU=Production files TLS 1/OU=Terms of use at
www.verisign.com/rpa (c)05/CN=ftp.smartmetertexas.biz; issuer:
/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at
https://www.verisign.com/rpa (c)09/CN=VeriSign Class 3 Secure Server CA -
G2

WARNING: Certificate verification: unable to get local issuer certificate

WARNING: Certificate verification: certificate not trusted

WARNING: Certificate verification: unable to verify the first certificate

cd `intervaldata' [Logging in...]

                                   

<--- 200 Command OK.

---> LANG

cd `intervaldata' [Logging in...]

                                   

<--- 200 EN

---> OPTS UTF8 ON

cd `intervaldata' [Logging in...]

                                   

<--- 530 Not logged in.

---> USER [USERID REMOVED]

cd `intervaldata' [Logging in...]

                                   

<--- 331 User name okay, need password.

---> PASS [PWD REMOVED]

cd `intervaldata' [Sending commands...]

                                         

<--- 230 User logged in, proceed.

---> CLNT lftp/4.0.10

cd `intervaldata' [Sending commands...]

                                         

<--- 200 Command OK.

---> LANG

cd `intervaldata' [Sending commands...]

                                         

<--- 200 EN

---> OPTS UTF8 ON

cd `intervaldata' [Sending commands...]

                                         

<--- 202 Command not implemented, superfluous at this site.

 

Reply via email to