cURL / Mailing Lists / curl-library / Single Mail


RE: Repeated HTTP Authorization after 401 response with uknown method

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

> From: curl-library [] on behalf of Petr Pisar
> []
> 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.

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:
Received on 2012-08-27