curl/docs/examples
2022-06-02 15:41:01 +02:00
..
.checksrc
.gitignore
10-at-a-time.c
adddocsref.pl
altsvc.c
anyauthput.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
cacertinmem.c
certinfo.c
chkspeed.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
cookie_interface.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
crawler.c examples/crawler.c: use the curl license 2022-06-02 15:41:01 +02:00
curlgtk.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
curlx.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
debug.c
ephiperfifo.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
evhiperfifo.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
externalsocket.c
fileupload.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
ftp-wildcard.c
ftpget.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
ftpgetinfo.c
ftpgetresp.c
ftpsget.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
ftpupload.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
ftpuploadfrommem.c
ftpuploadresume.c
getinfo.c
getinmemory.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
getredirect.c
getreferrer.c
ghiper.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
headerapi.c header api: add curl_easy_header and curl_easy_nextheader 2022-03-22 08:24:22 +01:00
hiperfifo.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
href_extractor.c
htmltidy.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
htmltitle.cpp
http2-download.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
http2-pushinmemory.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
http2-serverpush.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
http2-upload.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
http3-present.c
http3.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
http-post.c
httpcustomheader.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
httpput-postfields.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
httpput.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
https.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
imap-append.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
imap-authzid.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
imap-copy.c misc: update copyright year range 2021-12-30 14:17:47 +01:00
imap-create.c
imap-delete.c
imap-examine.c
imap-fetch.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
imap-list.c
imap-lsub.c
imap-multi.c
imap-noop.c
imap-search.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
imap-ssl.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
imap-store.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
imap-tls.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
Makefile.am scripts: move three scripts from lib/ to scripts/ 2022-03-23 15:26:11 +01:00
makefile.dj
Makefile.example
Makefile.inc examples: remove fopen.c and rtsp.c 2022-06-02 13:03:07 +02:00
Makefile.m32 Makefile.m32: delete obsolete options, improve -On [ci skip] 2022-05-24 17:04:38 +00:00
multi-app.c examples/multi-app.c: call curl_multi_remove_handle as well 2022-01-07 09:25:57 +01:00
multi-debugcallback.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
multi-double.c
multi-event.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
multi-formadd.c
multi-legacy.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
multi-post.c
multi-single.c examples/multi-single.c: remove WAITMS() 2021-12-30 13:55:54 +01:00
multi-uv.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
multithread.c
opensslthreadlock.c
parseurl.c
persistent.c
pop3-authzid.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
pop3-dele.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
pop3-list.c
pop3-multi.c
pop3-noop.c
pop3-retr.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
pop3-ssl.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
pop3-stat.c
pop3-tls.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
pop3-top.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
pop3-uidl.c
post-callback.c
postinmemory.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
postit2-formadd.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
postit2.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
progressfunc.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
README.md docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
resolve.c
sendrecv.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
sepheaders.c
sessioninfo.c
sftpget.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
sftpuploadresume.c misc: update copyright year range 2021-12-30 14:17:47 +01:00
shared-connection-cache.c
simple.c
simplepost.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
simplessl.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
smooth-gtk-thread.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
smtp-authzid.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
smtp-expn.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
smtp-mail.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
smtp-mime.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
smtp-multi.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
smtp-ssl.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
smtp-tls.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
smtp-vrfy.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
sslbackend.c
synctime.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
threaded-ssl.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
url2file.c
urlapi.c
usercertinmem.c
version-check.pl
xmlstream.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00

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 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 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.