Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any free SFTP gizmos out there?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01344675
Message ID:
01356154
Vues:
37
>>I'm trying to use this to upload to a sFTP site. This is what I'm getting:
>>
>>0 About to connect() to ftp1.xx.xx.org port 21 (#0)
>>0 Trying 10.xxx.xx.xxx...
>>0 connected
>>0 Connected to ftp1.xx.xx.org (10.xxx.xx.xxx) port 21 (#0)
>>1 220 ftp1.xx.xx.xxx FTP server (NcFTPd 2.2.2) ready.
>>2 AUTH SSL
>>1 500 Syntax error, command unrecognized.
>>2 AUTH TLS
>>1 500 Syntax error, command unrecognized.
>>0 Closing connection #0
>>0 Requested SSL level failed
>>
>>I've tried to step though the .prg - but just not having much luck figuring out where my 'syntax error' is - you have any ideas?
>>
>>Thanks!
>>
>>
>Victor:
>
>It seems that the FTP server you are connecting to is using this FTP server software: http://www.ncftp.com/ncftpd
>
>It seems that FTP server software does not support FTP over TLS/SSL. This is the FTP flavor you are trying to use based on your debug output.
>
>When libcurl issues the FTP commands "AUTH SSL" and "AUTH TLS", the FTP server on the other side does not recognize those as valid commands.
>
>So the "syntax error" you are getting is not a "syntax error" in your VFP code, it is just the way the FTP server has of telling you "I have no idea what you are asking me to do"
>
>You may want to issue the FtpGetFeatures method on the FTP server to see if it supports any form of encryption. This is the output from a FileZilla server for example:
>
>
>MDTM|REST STREAM|SIZE|MLST type*;size*;modify*;|MLSD|AUTH SSL|AUTH TLS|UTF8|CLNT|MFMT
>
>
>See how AUTH SSL|AUTH TLS are included in the string.
>
>The is a great deal of confussion as to what sFTP, FTPS really are:
>http://en.wikipedia.org/wiki/SSH_file_transfer_protocol
>http://en.wikipedia.org/wiki/FTPS
>
>I have even seen some people calling passive FTP "Secure FTP",
>
>It seems you are using CurlOptUseSsl = CURLUSESSL_ALL, set it to CURLUSESSL_TRY and see if it works.
>
>Carlos Alloatti

---Update----
Nevermind - I figured out what my problem was. I was passing the path + filename somewhere that I should of been using just the filename without the pathing.
------------------

I have some better results, but for some reason I'm not seeing the file on the FTP. The debug info looks like it says the transfer completed, so I'm confused as to why I don't see the file. Any ideas?
Thanks!

0 About to connect() to ftp1.xx.xx.org port 21 (#0)
0 Trying 10.xxx.xx.xxx...
0 connected
0 Connected to ftp1.xx.xx.org (10.xxx.xx.xxx) port 21 (#0)
1 220 ftp1.xx.xx.org FTP server (NcFTPd 2.2.2) ready.
2 AUTH SSL
1 500 Syntax error, command unrecognized.
2 AUTH TLS
1 500 Syntax error, command unrecognized.
2 USER vvvv
1 331 User vvvv okay, need password.
2 PASS vvvvvv
1 230-You are user #1 of 50 simultaneous users allowed.
1 230-
1 230 Logged in.
2 PWD
1 257 "/ftp/vvvv" is cwd.
0 Entry path is '/ftp/vvvv'
2 EPSV
0 Connect data stream passively
1 500 Syntax error, command unrecognized.
0 disabling EPSV usage
2 PASV
1 227 Entering Passive Mode (10.xxx.xx.xxx,181,146)
0 Trying 10.145.17.221...
0 connected
0 Connecting to 10.145.17.221 (10.xxx.xx.xxx) port 46482
2 TYPE I
1 200 Type okay.
2 STOR C:\VFP_PROJECTS\OUTPUT_DATA\bh4041_20081021102944.bhi
1 150 Data connection accepted from 10.xxx.xx.xxx:14990; transfer starting.
4 CURLINFO_DATA_OUT
4 CURLINFO_DATA_OUT
0 Remembering we are in dir ""
1 226 Transfer completed.
0 Connection #0 to host ftp1.xx.xx.org left intact
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform