On Tue, Feb 8, 2011 at 9:50 AM, Niall Twomey <[email protected]> wrote: > curl_formadd( &formpost, > &lastptr, > CURLFORM_COPYNAME, it->first.c_str(), > CURLFORM_PTRCONTENTS, it->second.c_str(), > CURLFORM_END ); ... > curl_formfree( formpost );
Perhaps you're blowing away memory held by it->second (which should be managed by the std::string destructor), when you use curl_formfree(). Perhaps CURLFORM_COPYCONTENTS would be appropriate? Lars Nilsson ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
