curl-users
Is it a bug?
From: Foxbax <foxbax_at_gmail.com>
Date: Wed, 17 Jan 2007 13:46:59 +0800
Date: Wed, 17 Jan 2007 13:46:59 +0800
CString strData = PreparePostParams();
data = strData.GetBuffer(strData.GetLength());
curl_easy_setopt(pCurl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(pCurl, CURLOPT_WRITEDATA, (void *)&chunk);
curl_easy_setopt(pCurl, CURLOPT_POSTFIELDS, data);
curl_easy_setopt(pCurl, CURLOPT_URL, url);
curl_easy_setopt(pCurl, CURLOPT_HTTPPOST, TRUE);
//exception here
curl_easy_perform(pCurl);
I compile my app use static LIBCURL LIB in visual c++ 6.0,If I
remove curl_easy_setopt(pCurl, CURLOPT_HTTPPOST, TRUE), it work fine.
Received on 2007-01-17