Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any free SFTP gizmos out there?
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344675
Message ID:
01356194
Views:
32
>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

Could you post the code that produces that debug info? What method of the class are you using and with what parameters?

The best way to upload a file would be to use FtpUploadFile(cRemoteFile, cLocalFile) where cRemoteFile is the full url to the remote file, and cLocalFile is the full path+name to the local file, for example:

Thisform.oLibCurl.FtpUploadFile("ftp://ftp.example.com/mynewfile.txt", "c:\myfolder\myfiletoupload.txt")

Always the remote file name goes first, the local file name second.

Carlos Alloatti
Previous
Reply
Map
View

Click here to load this message in the networking platform