curl-library
Re: SFTP transcript
Date: Wed, 10 Apr 2013 10:17:29 -0600
On Apr 10, 2013, at 9:59 AM, Sam Deane <sam_at_elegantchaos.com> wrote:
> When using SFTP with a CURLOPT_DEBUGFUNCTION installed, I'm only seeing calls to it with an infoType of CURLINFO_TEXT.
>
> Is that expected behaviour?
>
> I was hoping to be able to capture a transcript, in the same way as we do for FTP, but the only information coming back appears to be internal logging.
SFTP is a binary protocol, FTP is a text protocol. So you can't really get a readable "transcript" of SFTP unless you print a human-readable description of what's going on. And glancing at the code, it looks like libcurl is doing this for a few commands but not all of them. If you'd like to implement this for more commands, be our guest. The code is in lib/ssh.c.
Nick Zitzmann
<http://www.chronosnet.com/>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-10