#1297 -u : --negotiate do not work when -K is used


I do use:
curl 7.33.0 (x86_64-unknown-linux-gnu) libcurl/7.33.0 OpenSSL/1.0.0 zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

Invoking a URL with:
$ curl -i -L -o /dev/null -k --negotiate -u : $URL
works as expected. Negotiate auth is performed. When I transform this to a param file and pass with -K
$ curl -K params.txt
Warning: params.txt:6: warning: '-u' requires parameter

Interestingly, if I set -u foo:bar in the param file, the download works as expected.

The -u in the params file should behave same as in the first example.


  • Daniel Stenberg

    Daniel Stenberg - 2013-11-06
    • status: open --> open-confirmed
    • assigned_to: Daniel Stenberg
  • Daniel Stenberg

    Daniel Stenberg - 2013-11-06

    Thanks for your report.

    How silly! I can repeat the problem just fine. Will see what I can do about it...

  • Michael Osipov

    Michael Osipov - 2013-11-07

    Your new approach looks fine. I think it would be consistent with the CLI. As side a note on the naming style in English: Options start with a hyphen and not with a dash. Both are two distinct typographic glyphs. Please see: http://en.wikipedia.org/wiki/Hyphen

  • Daniel Stenberg

    Daniel Stenberg - 2013-11-07

    Ah, thanks for the language remark.

    We're talking about the actual ASCII code for minus so I'm not too happy with calling it hyphen since I think it could imply something else. If a single minus is a hyphen when it starts an option, what do you call two initial minuses? double-hyphen?

    It made me ask around, and at least to British persons insisted they normally use minus and minusminus when referring to the - or -- letters in command line options...

    I tried to see what other man pages call them, but I didn't find any really good source.

    The wikipedia article http://en.wikipedia.org/wiki/Command-line_interface uses the terms "hyphen-minus" and "double hyphen-minuses" which are awkwardly long and complicated methinks.

  • Michael Osipov

    Michael Osipov - 2013-11-07

    Just read the Wikipedia article. To cite this article: http://en.wikipedia.org/wiki/Hyphen#Hyphen-minus

    The best option for naming is -- imho -- minus. In the prolog of the man page you could clarify that you always refer to hyphen-minus as minus and double hyphen-minus ans double minus.

  • Daniel Stenberg

    Daniel Stenberg - 2013-11-08

    I had a discussion with friends on this issue on both G+ (https://plus.google.com/u/0/+DanielStenberg/posts/Jwa6Q8Pw6yY) and Facebook over this, and I'm afraid that the results disagree with you.

    Most people seem to say that 'dash' is the preferred word for this symbol and the word they mostly use for this.

  • Michael Osipov

    Michael Osipov - 2013-11-08

    Most people neither have a BA/MA in English language nor have typographic knowledge, so I wouldn't take their statements as reference. You should rather rely on the Oxford dictionary or Wikipedia. Dash is simply wrong as you have read that in the Wikipedia articles.

    See http://www.oxforddictionaries.com/words/dash

    Last edit: Michael Osipov 2013-11-08
  • Daniel Stenberg

    Daniel Stenberg - 2013-11-12

    Speaking of the Oxford dictionary, you can lookup hyphen there too then and see that there's nothing in that description that makes it more suitable.

    Sorry, but referring to old legacy books about something as narrow and technical as this is not a good idea. And I haven't found any good authoritative page on Wikipedia for it either, because "hyphen-minus" is most certainly NOT the right answer as there's not a living soul that uses that when talking about command lines even if the actual glyph is named that.

    So, I'm going to keep using 'dash' for the symbol in curl documentation.

  • Michael Osipov

    Michael Osipov - 2013-11-13

    Daniel, please re-read my answers. I wans't takling about using the term 'hyphen-minus' but simply 'minus' and NOT 'dash'. It's as simple as that.

  • Daniel Stenberg

    Daniel Stenberg - 2013-11-13

    Sorry, but there's no foundation for using minus either. People are simply not using "minus" when talking about it to any particularly big extent.

    Or perhaps put another way: there's no obviously correct name so I'll go with what I think sounds best and what also happens to be what most of the people I've asked say that they use.

  • Daniel Stenberg

    Daniel Stenberg - 2013-11-29
    • status: open-confirmed --> closed-fixed
  • Daniel Stenberg

    Daniel Stenberg - 2013-11-29

    Thanks, fixed in git now! Commit 0db811b69b2d5


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks