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_EFFECTIVE_URL when using CURLOPT_CURLU

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 7 Jun 2022 23:34:05 +0200 (CEST)

On Tue, 7 Jun 2022, Adam Light wrote:

> it seems that it's not possible to determine whether the effective URL
> returned by curl_easy_getinfo is actually valid.

As I told you, it is not *before* the transfer is done.

> I had been using curl_easy_getinfo as a way to determine which URL would be
> used if I were to call curl_easy_perform().

Side-effect. That's not exactly what CURLINFO_EFFECTIVE_URL is. You just
figured out that you could use it for that purpose in this circumstance.

-- 
  / 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.haxx.se/mail/etiquette.html
Received on 2022-06-07