cURL / Mailing Lists / curl-library / Single Mail


Problem on windows server 2003 client.

From: Corcoran, Jason <>
Date: Sat, 5 Dec 2009 22:27:25 -0800

I have implemented an application that uses libCURL version 7.15.1 ( I
can not change the version of curl).


When I make a post request to Salesforces new REST API, on XP or any
Unix platform, I get the expected response. But on Windows 2003 server I
see the response and then another response with just 0.


I am setting the following options.

res = curl_easy_setopt(m_pCurl, CURLOPT_WRITEFUNCTION,

    if ( res != CURLE_OK )

        return res;


res = curl_easy_setopt(m_pCurl, CURLOPT_WRITEDATA, (void

    if ( res != CURLE_OK )

        return res;



The replies below are from the call back set by the option


HTTP Reply Message: [01b4

<?xml version="1.0" encoding="UTF-8"?><jobInfo











HTTP Reply Message: [





In the call back set by the CURLOPT_WRITEFUNCTION I see the first
response and set the data pointer to it. But when I try to retrieve the
data it is not set. This only happens on Windows 2003 server. On all the
other platforms I do not see the second reply above.


Any pointers or options that I can set to get around this second reply
from the server.



List admin:
Received on 2009-12-06