curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: CURLINFO_REDIRECT_COUNT

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 6 Dec 2022 16:11:16 +0100 (CET)

On Tue, 6 Dec 2022, Mellergård, Daniel wrote:

>> Without more detail it's not possisble to tell. Auth maybe? If you set
>> CURLOPT_VERBOSE to 1L, you can probably see it.
>
> Thanks. Auth definitely seems to be involved. Is it expected? Does it need
> an extra round-trip when using auth, even when reusing a connection to the
> same host?

It depends.

HTTP auth is (normally) per-request, not per-connection so reusing a
connection doesn't necessarily mean that the auth is the same as before.

But also, it depends on how you set the libcurl options and what exact HTTP
auth is being used. libcurl makes an effort to do as few requests as possible
with what it has.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-12-06