cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: What differs?

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Wed, 21 Feb 2007 15:27:21 +0100

Fredrik Gustafsson wrote:
> curl_easy_setopt(con, CURLOPT_POST, post.c_str());

The CURLOPT_POST option takes a BOOL argument. You must use the
CURLOPT_POSTFIELDS to pass the POST data.

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

Linus
Received on 2007-02-21