Page 1 of 1

FTP File To FTP Server

Posted: Thu Mar 12, 2009 4:06 am
by warrenk
I want to FTP a file to a server and am trying to use the following command:

libURLftpUploadFile "/work.db","ftp://ftp.website.com","Complete"

How do I include the user name/password to login to the website?

Thanks for any help!

Warren

Posted: Thu Mar 12, 2009 7:12 am
by Janschenkel
You put the username and password into the server URL:

Code: Select all

libURLftpUploadFile "/work.db","ftp://username:password@ftp.website.com","Complete" 
You should probably UrlEncode[) the name and password.

HTH,

Jan Schenkel.