cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2061610 ] Windows x86: option --netrc uses wrong file _netrc

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 20 Aug 2008 06:22:59 +0000

Bugs item #2061610, was opened at 2008-08-20 06:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2061610&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Harald Schwarz (haschwar)
Assigned to: Nobody/Anonymous (nobody)
Summary: Windows x86: option --netrc uses wrong file _netrc

Initial Comment:
The Option --netrc on Win32 does not lookup the described file .netrc - it looks for _netrc.

How to reproduce it:
- Create variable Home that points to Z:\
- create the file .netrc in Z:\
- add following line to the file .netrc:
machine my_servername login my_username password my_password

run:
curl --netrc --trace-ascii %temp%\curl.log http://my_servername/any_path/index.html

curl.log shows in first line:
== Info: Couldn't find host my_servername in the _netrc file, using defaults

After creating the file _netrc curl finds user + password.
If there isn't any reason not to use .netrc, curl should use the file described in the help-output.

Curl-Deatails, OS-Details:
curl -V
curl 7.18.2 (i586-pc-mingw32msvc) libcurl/7.18.2 zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file
Features: Largefile NTLM SSPI libz

OS: Windows XP x86, Servicepack 2

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2061610&group_id=976
Received on 2008-08-20

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET