cURL / Mailing Lists / curl-library / Single Mail

curl-library

Help: getting the current url

From: Am Ro <skyelabs_at_gmail.com>
Date: Thu, 10 Apr 2008 16:15:22 -0400

In my program, I need to be able to get the original url and compare
it to the current url. I have tried this code, but it prints \270 to
the screen:

int connect(const char* aURL)
{
const char *currentUrl;
CURL *urlHandler;
curl_easy_setopt(urlHandle, CURLOPT_URL, aURL);
curl_easy_perform(urlHandle);

if (aUrl == currentUrl)
{
        connect(aURL);
}
else
{
        printf(currentURL);
}
}
Received on 2008-04-10