You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have username in netrc, but if I provide a username in the URL, none of them is used, and no Authorization header is sent (even if it is the same user).
Example:
.netrc:
machine server login user password 5up3r53cr31
$ curl -n http://user@server/
Unauthorized
The issue is caused by (and fixed by reverting) d1237ac.
If the user is specified as part of the URL, and the same user exists
in .netrc, Authorization header was not sent at all.
The user and password fields were assigned in conn->user and password
but the user was not assigned to data->state.aptr, which is the field
that is used in output_auth_headers and friends.
Fix by assigning the user also to aptr.
Amends commit d1237ac.
- Fixescurl#9243
orgads
added a commit
to orgads/curl
that referenced
this issue
Aug 18, 2022
If the user is specified as part of the URL, and the same user exists
in .netrc, Authorization header was not sent at all.
The user and password fields were assigned in conn->user and password
but the user was not assigned to data->state.aptr, which is the field
that is used in output_auth_headers and friends.
Fix by assigning the user also to aptr.
Amends commit d1237ac.
- Fixescurl#9243
I did this
I have username in netrc, but if I provide a username in the URL, none of them is used, and no Authorization header is sent (even if it is the same user).
Example:
.netrc:
The issue is caused by (and fixed by reverting) d1237ac.
I expected the following
I expect it to send
Authorization
header.curl/libcurl version
operating system
Windows 10
The text was updated successfully, but these errors were encountered: