cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLINFO_EFFECTIVE_URL

From: Charles <sanders-consulting_at_attbi.com>
Date: Thu, 13 Feb 2003 21:25:55 -0600

Hello,

    When i try to get the last used URL (does this include the URL that it was redirected too if redirect is turned on ? I am trying to get the list of URL's that are being visited in a series of redirects) but all I get is part of the header, including the referer along with some trash. Here is the code,

 if (curl_easy_perform(curl) != CURLE_OK) {

// MessageBox(error);
      }

      // now we set the last effective URL
      else {
       char *url = new char[1000];
       curl_easy_getinfo(curl,CURLINFO_EFFECTIVE_URL,url);
       if (url) last_url = url;
       if (g_bDebug) {
        string x = "Last effective URL : " + last_url;
        MessageBox(x.c_str());
       }
       delete url;
      }

How should I go about getting the list of URL's visited ?

Thanks,
Charles

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
Received on 2003-02-14