-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curlrc inconsistent behavior of proxy-user setting #3738
Comments
Reproduced in 7.64.1. -DDEBUG_CONFIG output:
It's happening because the colon is treated as a separator when the option is not dashed. Lines 39 to 41 in 521bbbe
Lines 164 to 166 in 521bbbe
|
Right, colon has been supported in config files as a supported separator since the dawn of time basically. The separate handling of dash-dash prefixed entrys came in 0db811b to at least allow exactly what works on the command line. The man page only shows and mentions '=' as a separator, but I'm still scared of changing this very old functionality as it seems likely to break scripts for users. Tricky! |
I suspect this happens with other switches such as |
If the parameter contains white space or starts with ":" or "=" then yes indeed! |
I think the proper fix for this is to make sure this is documented clearly. Like this:
|
I did this
Insert the following items to the _curlrc file
to force NTLM authentication using SSPI
Note that adding the line as
fixes the problem.
I expected the following
Success 200 OK
But I got
407 ACCESS DENIED
and
curl/libcurl version
curl 7.64.0 (x86_64-pc-win32) libcurl/7.64.0 OpenSSL/1.1.1b (Schannel) zlib/1.2.11 brotli/1.0.7 WinIDN libssh2/1.8.1 nghttp2/1.37.0
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz brotli TLS-SRP HTTP2 HTTPS-proxy MultiSSL
operating system
Microsoft Windows [Version 10.0.15063]
The text was updated successfully, but these errors were encountered: