cURL / Mailing Lists / curl-library / Single Mail


RE: The FTP problem that turns out to be SFTP

From: Michael Lam <>
Date: Mon, 9 Jan 2012 05:02:34 -0500

On Mon, 9 Jan 2012, Michael Lam wrote:

> * Connection #0 to host sfcadevftp01 left intact
> curl: (79) Upload failed: Operation failed (4/-31)
> * Closing connection #0
> Errorlevel: 79
> It didn't tell me much.

> But it told us everything! :-)

> The final 79 there is the exit/return code you said was 0. Or did I

Sorry, let me clarify. Yes, that return code was from client's sftp server, and we never got that error again (wrong return code). The 79 is from my sending files to a test sftp server set up using Cygwin. I intentionally have a folder where I have permission and a folder where I have no permission. Now I have set up the test sftp server a while back. So while I know which folder I didn't have permission to access, for some reason I couldn't change that permission using chmod 777.

So really there are two issues:

1) What does 79 mean, as the explanation from is too vague.
2) Why can't I change the permission of that folder and see if the uploading works, which probably isn't curl specific.
List admin:
Received on 2012-01-09