cURL / Mailing Lists / curl-users / Single Mail

curl-users

SV: Why is curl_easy_perform() outputting "1" to the console?

From: Danielkun <danielkun_at_iremo.com>
Date: Sat, 3 Nov 2007 01:12:11 +0900

>Where else is it supposed to write the '1'? Seriously, libcurl writes the
>output from the remote server to stdout unless you tell it otherwise, so
>my guess is the server is sending 1 after your form is successfully posted.
>You probably want to install a write callback handler to do something else
>with the result.

Thank you. You're completely right. I'm not really sure what I was thinking
there. But what if I don't need any output at all? I'm using cURL to post
some data and I don't need the result that the server returns.

Daniel
Received on 2007-11-02