cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Repeated HTTP Authorization after 401 response with uknown method

From: Joe Mason <jmason_at_rim.com>
Date: Mon, 27 Aug 2012 19:25:52 +0000

> From: curl-library [curl-library-bounces_at_cool.haxx.se] on behalf of Petr Pisar
> [petr.pisar_at_atlas.cz]
>
> I have a special HTTP server which expect Authorization header with `Basic'
> method and refuses bad password with 401 HTTP code and header WWW-Authenticate
> with special `totp' method.
>
> My problem is cURL (7.27.0) stops sending Authorization after first such 401
> response.

What do you expect curl to do? Keep sending Authorization: Basic even though the server never sent a WWW-Authenticate: Basic? Clearly curl can't send Authorization: totp since it has no idea what totp is.

Joe
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-27