cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURL_NO_OLDIES &

From: John Coffey <johnco3_at_gmail.com>
Date: Fri, 12 Aug 2016 13:53:54 -0400

Trying always to move forward, I recently added this preprocessor define to
my project and I received the following compilation error:

error C2065: 'CURLOPT_WRITEHEADER': undeclared identifier

Looking at the documentation I am not sure what the suggested replacement
is.

Could someone point me in the right direction as to how I should correctly
process headers - specifically if there is a suggested alternative to using
the CURLOPT_WRITEHEADER option.

Thanks in advance

John

I have a block of code that initializes the curl as follows.

    if (!isPASVMode()) {
        /*res = */curl_easy_setopt(pCurl, CURLOPT_FTPPORT, "-");
    }
    // used to capture header traffic
    if (mHeaderCallback) {
        /*res = */curl_easy_setopt(pCurl, CURLOPT_WRITEHEADER,
mpHeaderStream.get());
        /*res = */curl_easy_setopt(pCurl, CURLOPT_HEADERFUNCTION,
mHeaderCallback);
    }
    // for FTP GET operations
    if (mWriteDataCallback) {
        /*res = */curl_easy_setopt(pCurl, CURLOPT_WRITEDATA,
&mScratchBuffer);
        /*res = */curl_easy_setopt(pCurl, CURLOPT_WRITEFUNCTION,
mWriteDataCallback);
    }

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-08-12