curl/docs/examples
Daniel Stenberg 2610142139
lib: remove support for CURL_DOES_CONVERSIONS
TPF was the only user and support for that was dropped.

Closes #8378
2022-02-04 08:05:35 +01:00
..
.checksrc checksrc: ban gmtime/localtime 2020-07-28 23:51:17 +02:00
.gitignore docs/examples: add missing binaries to gitignore 2021-10-06 10:46:00 +02:00
10-at-a-time.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
adddocsref.pl curl.se: new home 2020-11-04 23:59:47 +01:00
altsvc.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
anyauthput.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
cacertinmem.c examples: remove superfluous asterisk uses 2020-12-16 09:24:16 +01:00
certinfo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 src: Remove C99 constructs to ensure C89 compliance 2020-04-19 21:56:52 +02:00
curlgtk.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
curlx.c copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
debug.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 externalsocket: use WinSock 2.2 2021-09-28 19:29:29 +02:00
fileupload.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
fopen.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
ftp-wildcard.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpget.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
ftpgetinfo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpgetresp.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
ftpuploadresume.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
getinfo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
getinmemory.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
getredirect.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
getreferrer.c http: add new files missed from referrer commit 2021-02-19 16:18:15 +00:00
ghiper.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
hiperfifo.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
href_extractor.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
htmltidy.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
htmltitle.cpp copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
http3.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
http-post.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 misc: update copyright year range 2021-12-30 14:17:47 +01:00
imap-copy.c misc: update copyright year range 2021-12-30 14:17:47 +01:00
imap-create.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-delete.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-examine.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-fetch.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
imap-list.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-lsub.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-multi.c docs/examples: use curl_multi_poll() in multi examples 2021-07-07 08:15:09 +02:00
imap-noop.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 netware: remove support 2022-01-31 13:40:26 +01:00
makefile.dj curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.example curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.inc lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
Makefile.m32 Makefile.m32: rename -winssl option to -schannel and tidy up 2021-11-25 17:36: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 docs/examples: use curl_multi_poll() in multi examples 2021-07-07 08:15:09 +02:00
multi-event.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
multi-formadd.c docs/examples: use curl_multi_poll() in multi examples 2021-07-07 08:15:09 +02:00
multi-legacy.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
multi-post.c docs/examples: use curl_multi_poll() in multi examples 2021-07-07 08:15:09 +02:00
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 mailing lists: move from cool.haxx.se to lists.haxx.se 2021-08-30 09:51:07 +02:00
opensslthreadlock.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
parseurl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
persistent.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-authzid.c misc: update copyright year range 2021-12-30 14:17:47 +01:00
pop3-dele.c misc: s/e-mail/email 2021-12-19 23:48:13 +01:00
pop3-list.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-multi.c docs/examples: use curl_multi_poll() in multi examples 2021-07-07 08:15:09 +02:00
pop3-noop.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
post-callback.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
rtsp.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
sendrecv.c docs/examples: workaround broken -Wno-pedantic-ms-format 2021-12-14 07:52:26 +01:00
sepheaders.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
sessioninfo.c curl.se: new home 2020-11-04 23:59:47 +01:00
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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
simple.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
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 misc: s/e-mail/email 2021-12-19 23:48:13 +01: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 curl.se: new home 2020-11-04 23:59:47 +01:00
synctime.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
threaded-ssl.c docs: reduce/avoid English contractions 2021-11-07 23:16:27 +01:00
url2file.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
urlapi.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
usercertinmem.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
version-check.pl curl.se: new home 2020-11-04 23:59:47 +01:00
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.