I have set up %HOMEDRIVE%%HOMEPATH%\_netrc and %APPDATA%\_netrc for the server I want to connect, but it seems that neither is consulted:
curl.exe -nv _url_requiring_authentication_
* Couldn't find host _host_ in the _netrc file; using defaults
< HTTP/1.1 401 Unauthorized
I expected the following
As %HOME% is not commonly set on Windows, I expected curl to consult also %APPDATA%. It is done for _curlrc, but not for _netrc. It would be good to resolve _netrc the same way. Currently it looks like no path is considered due to %HOME% not being set.