Skip to content

Files

Latest commit

58b9c61 · Jul 28, 2025

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 28, 2025
May 27, 2024
Jul 28, 2025
Jun 27, 2025
Jul 12, 2024
Jun 14, 2025
Oct 15, 2024
Jul 27, 2025
Dec 16, 2024
Feb 27, 2024
Jul 28, 2025
Jul 27, 2025
Jul 21, 2025
Jan 3, 2023
Feb 28, 2025
Feb 27, 2024
Feb 28, 2025
Jun 27, 2025
Sep 19, 2024
Feb 27, 2024
Jun 27, 2025
Jun 27, 2025
Apr 23, 2025
Feb 21, 2025
Jun 5, 2025
Apr 23, 2025
Dec 20, 2023
Sep 19, 2024
Dec 27, 2024
Dec 20, 2023
Feb 21, 2025
Jul 21, 2025
Feb 21, 2025
Jan 3, 2023
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Jul 28, 2025
Feb 27, 2024
Jun 27, 2025
Jan 3, 2023
Jul 28, 2025
Sep 19, 2024
Jul 25, 2025
Feb 27, 2024
Aug 4, 2024
Feb 28, 2025
May 27, 2024
Sep 20, 2024
Jun 27, 2025
Jan 3, 2023
Jul 28, 2025
Jan 3, 2023
Jul 21, 2025
Dec 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Jan 3, 2023
Jan 3, 2023
Jan 3, 2023
Feb 27, 2024
Feb 27, 2024
Sep 7, 2023
Feb 27, 2024
Jan 3, 2023
Jan 3, 2023
May 30, 2025
Jan 3, 2023
Jul 28, 2025
Oct 30, 2023
Jul 7, 2025
Jun 12, 2024
Feb 27, 2024
Feb 27, 2024
Jan 2, 2025
Sep 19, 2024
May 27, 2024
Jun 27, 2025
Sep 20, 2024
Jan 2, 2025
May 27, 2024
May 27, 2024
Jun 27, 2025
Jul 27, 2025
Jan 10, 2024
Feb 27, 2024
May 27, 2024
Feb 27, 2024
Jan 3, 2023
Feb 27, 2024
Feb 27, 2024
Jan 3, 2023
Feb 27, 2024
May 30, 2025
Jan 3, 2023
Jul 28, 2025
Jan 3, 2023
Jan 3, 2023
Jul 21, 2025
Feb 27, 2024
Sep 20, 2024
Feb 27, 2024
Jan 3, 2023
Apr 18, 2023
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Jan 22, 2025
May 27, 2024
Jul 25, 2025
Apr 23, 2025
Jul 27, 2025
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Jul 21, 2025
Jul 27, 2025
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
May 30, 2025
Jul 28, 2025
Feb 27, 2024
Sep 21, 2023
Jun 27, 2025
Jul 27, 2025
Aug 4, 2024
May 27, 2024
Jun 18, 2023
Jul 21, 2025
Jul 27, 2025
Feb 27, 2024
Jul 8, 2025
Jun 27, 2025

README.md

libcurl examples

This directory is for libcurl programming examples. They are meant to show some simple steps on how you can build your own application to take full advantage of libcurl.

If you end up with other small but still useful example sources, please mail them for submission in future packages and on the website.

Building

The Makefile.example is an example Makefile that could be used to build these examples. Just edit the file according to your system and requirements first.

Most examples should build fine using a command line like this:

`curl-config --cc --cflags --libs` -o example-my example.c

Some compilers do not like having the arguments in this order but instead want you do reorganize them like:

`curl-config --cc` -o example-my example.c `curl-config --cflags --libs`

Please do not use the curl.se site as a test target for your libcurl applications/experiments. Even if some of the examples use that site as a URL at some places, it does not mean that the URLs work or that we expect you to actually torture our website with your tests. Thanks.

Examples

Each example source code file is designed to be and work stand-alone and rather self-explanatory. The examples may at times lack the level of error checks you need in a real world, but that is then only for the sake of readability: to make the code smaller and easier to follow.