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: Tue, 28 Aug 2012 18:02:59 +0000

> From: curl-library [curl-library-bounces_at_cool.haxx.se] on behalf of Petr Pisar
> [petr.pisar_at_atlas.cz]
>
> In addition I tried to figure out what everything has to be re-set to get
> Authorization header in second request and it looks like nothing special is
> needed. No curl_easy_reset(), no setting no CURLOPT_PASSWORD even no
> CURLOPT_HTTPAUTH.
>
> So I'm more than satisfied with current master head. I'm just not sure it
> matches your idea exactly. (Maybe I should note the server I use closes
> connection after each request.)

I believe my idea that you need curl_easy_reset only applies if the same connection is reused.

When you say "no CURLOPT_HTTPAUTH", do you mean that after sending the first request, you call "curl_easy_setopt(CURLOPT_HTTPAUTH, NULL)" or something like that to clear the HTTPAUTH? Or just that you don't update the CURLOPT_HTTPAUTH between requests?

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-28