Thank you.

So I need some direction on what exactly my syntax for SFTP should look like so 
that I can direct the Administrator (who has access to curl directly --- unlike 
myself) to attempt the SFTP.

Should it be 

        Curl  -u sftplogin:sftppassword  -T localfile   
sftp://sftpsite/sftsitedir

And this will put my localfile into sftpsitedir

?

I am using a third tool that has access to the curl lib  (Oracle Peoplesoft 
SQR)  to run the cmd.exe using curl why is where WIN_STATUS gets returned.
From the SQR Report I invoke 'c:\windows\system32\cmd.exe cmd.exe /c cd /d 
c:\OpenSSL-Win64\bin&curl ' to run curl using their call system method.

Thanks again,

Jeanne Vural

-----Original Message-----
From: curl-library [mailto:[email protected]] On Behalf Of 
Daniel Stenberg
Sent: Wednesday, February 24, 2016 8:49 AM
To: libcurl development <[email protected]>
Subject: Re: curllib and SFTP

On Wed, 24 Feb 2016, Jeanne Vural wrote:

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

SFTP is a completely different protocol than FTP though.

> I want to use SFTP and I mimicked their syntax.  It is not successful 
> and I get a WIN_STATUS of 1 back.

WIN_STATUS ?

> I assumed I should be using the delivered cert...

SFTP doesn't use certificates at all, so no.

> curl -v -cacert

The --cacart option is used with two dashes, but it is for TLS based protocols 
and SFTP is not one of those.

> -F

This is for HTTP(S). It does nothing good for SFTP.

> "username=<username>" -F "password=<password>"

You specify username and password with -u.

To upload a file over SFTP, you use "-T filename".

-- 

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

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

Reply via email to