Good Morning,

I am new to curllib so please forgive any ignorance.
I also do not have control of install or environment where it is installed so 
debugging and testing is by trial and error.

Other developers have used curl  to transfer using FTP so I know the curllib is 
functioning in our environment.

I want to use SFTP and I mimicked their syntax.  It is not successful and I get 
a WIN_STATUS of 1 back.  I assumed I should be using the delivered cert...I 
have also tried without this parameter.
Can you tell me if my syntax below is correct and should work to send a text 
file to the sftp site.

I have verified that I can connect to the sftp site with username and password 
in my command.

c:\windows\system32\cmd.exe /c cd /d c:\OpenSSL-Win64\bin&curl -v -cacert 
"C:\OpenSSL-Win64\curl-ca-bundle.pem" -F "username=<username>" -F 
"password=<password>" -F "data_file=@<filepathandname>" sftp://<sitenameandpath>

Thank you for your help.

Jeanne

_______________________________________________________________

Jeanne Vural | Information Technology Services | 978-542-2757
Salem State University, 352 Lafayette St., Salem, Massachusetts  01970

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html

Reply via email to