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: How to use libcurl to get the final URL of a site after a redirection ?

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 19 Jul 2020 09:34:23 +0200 (CEST)

On Sun, 19 Jul 2020, Morbius via curl-library wrote:

> I would like to write a function to obtain the final URL from a site which
> redirects to another site using libcurl functions. I need some guidance on
> this.

CURLINFO_EFFECTIVE_URL ?

https://curl.haxx.se/libcurl/c/CURLINFO_EFFECTIVE_URL.html

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-19