cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Converting shell level curl to libcurl (linux)

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

On Fri, 5 Aug 2011, Jeremy.Levine_at_interactivedata.com 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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-05