curl / Mailing Lists / curl-library / Single Mail


Re: hi

From: Alex Bligh <>
Date: Wed, 14 Dec 2016 16:14:30 +0000

> On 14 Dec 2016, at 13:42, Gregory Davis <> wrote:
> hi thanks for the add to your site. i am new to programming and Curl specifically and have a programming question.
> i have these Curl command lines i would to transform to C but don’t know how to do it
> is there any tutorials or pdfs on doing this? my end goal is to write it into a module that use c+ or c Sharp and build a module for the code
> her is a representative of the command lines in question.
> curl -u instructor:password -k -d '' —url
> curl —user instructor:password -k --url
> Any help or direction would be greatly appreciated.

curl can do that for you automatically. From the manpage:

  --libcurl <file>
         Append this option to any ordinary curl command line, and you will
         get a libcurl-using C source code written to the file that does the
         equivalent of what your command-line operation does!

Alex Bligh
List admin:
Received on 2016-12-14