cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Character conversion for sftp

From: NAGASEKHAR BHUVANAGIRI <bnagasekhar_at_gmail.com>
Date: Mon, 29 Mar 2010 15:11:37 +0530

On Mon, Mar 29, 2010 at 1:21 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 29 Mar 2010, NAGASEKHAR BHUVANAGIRI wrote:
>
> Could someone advice me how the character conversion can be handled for
>> sftp?
>>
>
> (I removed the libssh2 list as a receiver, this is a libcurl question)
>
> Why would libcurl do any conversion of data when doing SFTP? SFTP is
> defined as a pure binary transfer and you get the data exactly the way the
> server sends it!
>
> If you want to convert it somehow, then that responsibility is yours.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

The conversion is for control responses and not for data. The reponse
received by banner_receive method in (libssh2's session.c) is garbled and
gived PACKET_FAIL error. This issue is specific to z/OS.
Thanks,
Nagasekhar

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-29