curl-library
Re: Segmentation Fault
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 12 Dec 2012 23:08:45 +0100 (CET)
Date: Wed, 12 Dec 2012 23:08:45 +0100 (CET)
On Wed, 12 Dec 2012, Mauricio Ramirez wrote:
> curl_easy_setopt( curl, CURLOPT_POSTFIELDS, data.c_str() );
> curl_easy_setopt( curl, CURLOPT_POSTFIELDSIZE, data.c_str());
... it seems VERY unlikely that your string pointer would be the same as the
length of the string... Also make sure that you pass a 'long' to
CURLOPT_POSTFIELDSIZE and no other variable type/size.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-12-12