cURL / Mailing Lists / curl-library / Single Mail

curl-library

Bug in ftp transfers?

From: Randy Cook <rcook_at_caldera.com>
Date: Wed, 31 Oct 2001 15:01:09 -0700 (MST)

I am using libcurl 7.8.1.

I am using the curl_easy interface. Here is some code...

    curl = curl_easy_init();
    .
    .
    .
    FILE *outputfp = fopen (localFileName.c_str(), "w");
    .
    .
    .
    curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
    curl_easy_setopt(curl, CURLOPT_FILE, outputfp);
    curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
    curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
    curl_easy_setopt(curl, CURLOPT_MUTE, 1);
    res = curl_easy_perform(curl);
    if (res == 0)
    {
    }
    else
    {
        statusString = "File transfer library error:";
        statusString += errorBuffer;
        fclose (outputfp);
        curl_easy_cleanup(curl);
        return CS_SRD_ERROR;
    }
    fclose (outputfp);
    curl_easy_cleanup(curl);

When I attempt to transfer this url:
ftp://ftp.VolutionOnline.com/pub/pub1/RPM_3/Caldera/3.1/992/fetchmail-5.4.0-5a.i386.rpm
it works!

When I try this url:
ftp://ftp.nl.vim.org/vol/3/metalab/distributions/caldera/updates/OpenLinux/3.1/Server/007/RPMS/docview-1.0-15.i386.rpm
I get the following error:
File transfer library error:Couldn't change to directory
vol/3/metalab/distributions/caldera/updates/OpenLinux/3.1/Server/007/RPMS

Any ideas?

TIA,

Randy Cook
Caldera
www.caldera.com
Received on 2001-11-01