cURL / Mailing Lists / curl-library / Single Mail


Re: curl with ssh.

From: Dan Fandrich <>
Date: Tue, 22 Apr 2014 23:17:34 +0200

On Tue, Apr 22, 2014 at 10:34:36PM +0530, san d wrote:
> We use curl with sshlib 1.4.2. The uploaded files under sftp are sometimes
> getting corrupted. How to see the proper error code returned from ssh layer? 

libcurl doesn't always log the original libssh2 error code before converting
it to a libcurl error code. But, in any case where there was an ssh error
there should also be a libcurl error. Are you seeing corruption even when the
success code was returned? Can you reproduce the issue using the curl
command-line tool?

>>> Dan
List admin:
Received on 2014-04-22