I've actually built a handler using curl that I can use.I wanted a scriptable application that my staff could update and do on their own. They're a bright crew, but, for the most part, still on OS 9 (our servers or OS X.) The switch to OS X UNIX commands may be a bit more than they are ready for at this point.
on ftp_upload(remote_site, master_directory, client_directory, userName, userPasswd, file_date, upload_this, suffix)
set theFileIsOpen to false
set saveErrors to false
set myHandler to "ftp upload: "
try
set upload_this to upload_this as string
set myCommand to "cd " & (POSIX path of (master_directory & client_directory & ":" & client_directory)) & "_final_files" & "/;" & ¬
"curl --upload-file '" & (upload_this) & "' " & remote_site & client_directory & ¬
"/ --user " & userName & ":" & userPasswd & " " & " --quote -quit"
set foo to do shell script myCommand
return "OK"
on error errtext number errNum
set myerror to {errtext, errNum, myHandler}
tell me to handleErrors(myerror, saveErrors, theFileIsOpen, upload_this)
end try
end ftp_upload