curl-library
Problem on windows server 2003 client.
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,
writeMemoryCallback);
if ( res != CURLE_OK )
return res;
res = curl_easy_setopt(m_pCurl, CURLOPT_WRITEDATA, (void
*)m_sCurlCallBackBuf);
if ( res != CURLE_OK )
return res;
The replies below are from the call back set by the option
CURLOPT_DEBUGFUNCTION.
HTTP Reply Message: [01b4
<?xml version="1.0" encoding="UTF-8"?><jobInfo
xmlns="http://www.force.com/2009/06/asyncapi/dataload">
<id>750300000004DetAAE</id>
<operation>upsert</operation>
<object>Account</object>
<createdById>0053000000107XVAAY</createdById>
<createdDate>2009-12-06T05:52:39.000Z</createdDate>
<systemModstamp>2009-12-06T05:52:39.000Z</systemModstamp>
<state>Open</state>
<externalIdFieldName>Ext_ID__c</externalIdFieldName>
</jobInfo>].
HTTP Reply Message: [
0
].
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.
Jason.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-06