cURL / Mailing Lists / curl-library / Single Mail


RE: Repeated HTTP Authorization after 401 response with uknown method

From: Joe Mason <>
Date: Tue, 28 Aug 2012 18:38:23 +0000

> From: curl-library [] on behalf of Petr Pisar
> []
> > I believe my idea that you need curl_easy_reset only applies if the same
> > connection is reused.
> >
> What do you mean by connection? TCP connection? CURL handle?

TCP connection.

> I feel the library should provide the same semantics regardless HTTP layer
> needs to reconnect TCP socket or not.

I could be wrong - maybe you don't need to use curl_easy_reset even if it doesn't use a new connection.
> > 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?
> >
> The later one---that I do not set the option again. Plain curl_easy_perform()
> followed by another perform().

Ok, so it's just reusing the options set the first time.

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