On Wed, 30 Sep 2009, Anna Gulaev wrote:
I used to be able to send data to a web server from a c++ program using
curl. Now all that's being received is thirty dashes followed by six
hexidecimal numbers, like this:
So your program worked fine until one day it just stopped working and now
sends something else? Somehow it feels like somehting was changed to cause the
changed behavior...
------------------------------07ac4edfb36c
This looks like a mime separator libcurl uses when sending multipart
formposts. I'd suggest you use CURLOPT_DEBUGFUNCTION and/or wireshark to get
to see exactly what libcurl sends and what the server responds.
// suck in as much data as is ready
while( CURLM_CALL_MULTI_PERFORM == curl_multi_perform(
CurlMultiHandle, &CurlStillRunning)); //note semicolon
Note that this loop will of course not perform the entire transfer...
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html