cURL / Mailing Lists / curl-library / Single Mail


Re: Converting shell level curl to libcurl (linux)

From: Daniel Stenberg <>
Date: Fri, 5 Aug 2011 21:55:48 +0200 (CEST)

On Fri, 5 Aug 2011, wrote:

> The examples are close but I can't seem to figure out the "-H"

Check out the httpcustomheader.c example!

> and "-o" handling. I can covert the -o from a file to a buffer if needed.

Basically a matter of handling the CURLOPT_WRITEFUNCTION and/or
CURLOPT_WRITEDATA properly. They're used by some 20 examples.

List admin:
Received on 2011-08-05