cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: [PATCH] http: avoid auth failure on a duplicated header

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 17 Jul 2014 12:51:34 +0200 (CEST)

On Thu, 17 Jul 2014, Michael Osipov wrote:

> The issue is that your server does not behave the way intended. That
> requires a custom fix in curl.

Well, we need to handle what servers do or can do, and duplicated headers is a
very common mistake in the wild - sometimes not even by mistake.

> The other issue with curl is that it performs preemptive auth which is a bug
> because the RFC say MAY. That requires an option --preemptive. Especially,
> not all acceptors are capable of processing preemptive auth.

I'm not following. If you're talking about libcurl selection a specific single
auth method at once, that should still behave the proper way. It just means
that the user of libcurl has specified exactly one single auth method so that
we know which method to use.

I don't see a need for --preemptive.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-17