News for hackers. Stuff that matters.
Re:Why curl defaults to stdout by lsiebert on Monday November 17, 2014 @08:23AM (#8618049)
I was recently playing with libcurl (easiest way I know to interact with a rest api in c), and libcurl's default callback for writing data does this too.It takes a file handle, and if no handle is supplied, it defaults to stdout. It's actually really nice as a default... you can use different handles for the headers vs the data, or use a different callback altogether.

I really, really like libcurl's api (or at least the easy api, I didn't play around with the heavy duty multi api for simultaneous stuff). It's very clean and simple.

There are no comments on this comment yet.