cURL / Mailing Lists / curl-library / Single Mail


Quote command response

From: John C. Kha <>
Date: Fri, 11 Nov 2005 00:21:53 -0700

I have sent the following through curl, and was wondering where the response to the SYST command could be found, as i did not see it in the buffer. Thanks in Advance

        printf("FTP: Listing dir.\n");
        Ecore_Hash* data = ecore_hash_new(ecore_direct_hash, ecore_direct_compare);
        struct curl_slist* prequote = NULL;
        char* syst = "SYST";
        prequote = curl_slist_append(prequote, syst);
        ecore_hash_set(data, (int*)EVFS_FTP_CLIENT, client);
        ecore_hash_set(data, (int*)EVFS_FTP_COMMAND, command);
        CURLcode* handle = connection_handle_get(command->file_command.files[0]);
        curl_easy_setopt(handle, CURLOPT_WRITEDATA, (FILE *)data);
        curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, listdir);
        curl_easy_setopt(handle, CURLOPT_PREQUOTE, prequote);
        printf("Executing curl_easy_perform()...\n");

John Kha
Received on 2005-11-11