cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Simple HTTP PUT - response content printed to screen

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 26 Jan 2013 10:37:14 +0100

On Fri, Jan 25, 2013 at 05:37:11PM -0500, Joe Lorenz wrote:
> I'm having this problem when using libcurl in my own (Linux) app, but
> I can demonstrate the same problem using the curl tool.
> If a simple HTTP file upload (presumably a 'PUT'), and the file gets
> created at the destination, the response content is printed to
> screen:

Writing output to stdout is libcurl's default behaviour. If that's not what
you want, then install a CURLOPT_WRITEFUNCTION handler and do something
else with the data.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-26