curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: curl mutually exclusive --ntlm and --negotiate option

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 28 Jul 2025 13:27:36 +0200 (CEST)

On Mon, 28 Jul 2025, jicea via curl-users wrote:

> I've a simple questions regarding --ntlm and --negotiate option. In the
> manual for ntlm, it is written that "--ntlm requires that libcurl is built
> to support TLS. This option is mutually exclusive with --basic,
> --negotiate, --digest and --anyauth. See also --proxy-ntlm."

That is wrong. Those options are not mutually exclusive, they actually
enable/disable those specific authentication methods.

I'm fixing that mistake here: https://github.com/curl/curl/pull/18059

> - Are --ntlm and --negotiate exclusive? if yes, what's the choosen one if
> both options are provided?

Using --ntlm and --negotiate means either of those authentication methods are
fine to use.

> - mutual exclusive options like negotiate and ntlm seems to be accepted

Yeah, the docs is wrong, sorry!

-- 
  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-07-28