cURL / Mailing Lists / curl-users / Single Mail

curl-users

.netrc information not fully recognized

From: Jason Friedman <jason_at_powerpull.net>
Date: Mon, 22 Feb 2010 15:01:25 -0700

Hi,

spjsf_at_infodev1:~> uname -a
SunOS infodev1 5.10 Generic_137111-02 sun4u sparc SUNW,Sun-Fire-V890

spjsf_at_infodev1:~> cat .netrc
machine den-wiki.den.ofi.com login wikiuser password myPassword

spjsf_at_infodev1:~> curl --user wikiuser:myPassword
ftp://den-wiki.den.ofi.com/some_file
data line 1
data line 2
data line 3
data line 4
data line 5
data line 6
data line 7
data line 8
data line 9

So, here is my problem:

spjsf@infodev1:~> curl -v --netrc ftp://den-wiki.den.ofi.com/some_file
password: <-- I just hit the Return key here
* About to connect() to den-wiki.den.ofi.com:21
* Connected to den-wiki.den.ofi.com (172.17.36.254) port 21
> USER wikiuser
> PASS
* the username and/or the password are incorrect
* Closing connection #0
curl: (10) the username and/or the password are incorrect

Note the USER line: curl is apparently picking my username (wikiuser)
from the .netrc file, but not the password.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-22