Re: What differs?
Date: Wed, 21 Feb 2007 15:18:46 +0100 (CET)
On Wed, 21 Feb 2007, Fredrik Gustafsson wrote:
> Hi, I've got a c++ program, that should do the same task as a command line.
> The thing is, it doesn't and I can't find out what differs the to.
With curl 7.16.1 and later, append "--libcurl [filename]" to get a C program
written that replicates what the command line does!
> curl_easy_setopt(con, CURLOPT_POST, post.c_str());
This is wrong. CURLOPT_POSTFIELDS is probably what you want.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-02-21