cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Help: getting the current url

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 Apr 2008 23:37:21 +0200 (CEST)

On Thu, 10 Apr 2008, Am Ro wrote:

> curl_easy_getinfo(urlHandle, CURLINFO_EFFECTIVE_URL, currentURL);

Try:

   curl_easy_getinfo(urlHandle, CURLINFO_EFFECTIVE_URL, &currentURL);

Allow me to quote the manual:

   CURLINFO_EFFECTIVE_URL

     Pass a pointer to a 'char *' to receive the last used effective URL.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-10