Hi, ALL, I am new to libcurl and trying to write cross-platform software having problem.
Here is my code: CURLcode error; char errorMsg[1024]; wxString boundary = wxString::Format( "---------------------------%x", static_cast<unsigned int>( time( NULL ) ) ); curl_easy_setopt( handle, CURLOPT_URL, "http://174.122.236.154/TouchAndRead/Default.aspx" ); curl_easy_setopt( handle, CURLOPT_POSTFIELDS, const_cast<char *>( boundary.ToAscii().data() ) ); curl_easy_setopt( handle, CURLOPT_ERRORBUFFER, errorMsg ); error = curl_easy_perform( handle ); Running on Mac/Cocoa this executes fine. When ran on Windows however, I am getting CURLE_WRITE_ERROR and the errorMsg contains: "Failed writing body(1416 != 1460)". Is there some option I'm missing to set for Windows? AFAIU, CURLOPT_INFILESIZE_LARGE is for files only... Thank you. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
