cURL / Mailing Lists / curl-users / Single Mail


SFTP "File already completely downloaded" Problem

From: Johnson, Gregory (Corporate) <>
Date: Thu, 22 Jan 2009 13:23:29 -0500

I am trying to download a file via sftp but am getting the message "file
already completely downloaded." The file has not been downloaded at
all. I am able to download the file using FileZilla under Windows, and
via sftp in UNIX on the same box as curl.

OS: sunOS 5.8 Generic Patch October 2001

$ curl --version
curl 7.18.2 (sparc-sun-solaris2.8) libcurl/7.18.2 OpenSSL/0.9.8h
zlib/1.2.3 libidn/1.8 libssh2/0.18
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: IDN IPv6 Largefile NTLM SSL libz

The file I am trying to download is called
01ld3rv. I am encoding the percent signs in the filename as %25 in the
url. If I don't do that, I get File Not Found.

Here is the command:

curl -v -u username:xxxxx
-A%25SFTP%25POLLABLE%2539fedh003ruvutcg001ld3rv -o file.txt

Here's what I get:

* About to connect() to port 22 (#0)
* Trying connected
* Connected to ( port 22 (#0)
* SSH authentication methods available: publickey,password
* Using ssh public key file /home/user/gjohnson/.ssh/
* Using ssh private key file /home/user/gjohnson/.ssh/id_dsa
* SSH public key authentication failed: Username/PublicKey combination
* Initialized password authentication
* Authentication complete
* File already completely downloaded
  % Total % Received % Xferd Average Speed Time Time Time
                                 Dload Upload Total Spent Left
  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
0* Connection #0 to host left intact

* Closing connection #0

Any help would be greatly appreciated.

Greg Johnson
List admin:
Received on 2009-01-22