.netrc pains https://daniel.haxx.se/blog/2022/05/31/netrc-pains/ - there's no .netrc standard or spec, which makes everyone solve the problems differently and interop suffers. I patched curl's 24 years old parser code...
@bagder A crazy idea on how to handle that is to try all possibilities, starting with the preferred parsing. Alas, that would create very weird failure modes ("my .netrc stopped working when the server reduced the quota of failed login attempts").