Daniel Stenberg 4a8f6869db English: use American spelling consistently il y a 2 ans
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime il y a 4 ans
.gitignore 013cb2ff7d docs/examples: add missing binaries to gitignore il y a 3 ans
10-at-a-time.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
Makefile.am 8e22fc68e7 scripts: move three scripts from lib/ to scripts/ il y a 2 ans
Makefile.example 4d2f800677 curl.se: new home il y a 4 ans
Makefile.inc d1e4a67734 header api: add curl_easy_header and curl_easy_nextheader il y a 2 ans
Makefile.m32 8c0336cf5d Makefile.m32: rename -winssl option to -schannel and tidy up il y a 3 ans
README.md a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
adddocsref.pl 4d2f800677 curl.se: new home il y a 4 ans
altsvc.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
anyauthput.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
cacertinmem.c 1451f4d2e1 examples: remove superfluous asterisk uses il y a 3 ans
certinfo.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
chkspeed.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
cookie_interface.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
crawler.c 207a6cbb90 src: Remove C99 constructs to ensure C89 compliance il y a 4 ans
curlgtk.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
curlx.c 4a8f6869db English: use American spelling consistently il y a 2 ans
debug.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
ephiperfifo.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
evhiperfifo.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
externalsocket.c 7a0c160473 externalsocket: use WinSock 2.2 il y a 3 ans
fileupload.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
fopen.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
ftp-wildcard.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
ftpget.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
ftpgetinfo.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
ftpgetresp.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
ftpsget.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
ftpupload.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
ftpuploadfrommem.c f2ed79d8ee docs/examples: adjust prototypes for CURLOPT_READFUNCTION il y a 3 ans
ftpuploadresume.c f2ed79d8ee docs/examples: adjust prototypes for CURLOPT_READFUNCTION il y a 3 ans
getinfo.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
getinmemory.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
getredirect.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
getreferrer.c f65d7889b5 http: add new files missed from referrer commit il y a 3 ans
ghiper.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
headerapi.c d1e4a67734 header api: add curl_easy_header and curl_easy_nextheader il y a 2 ans
hiperfifo.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
href_extractor.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
htmltidy.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
htmltitle.cpp ac0a88fd25 copyright: fix year ranges il y a 4 ans
http-post.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
http2-download.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
http2-pushinmemory.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
http2-serverpush.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
http2-upload.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
http3-present.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
http3.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
httpcustomheader.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
httpput-postfields.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
httpput.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
https.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
imap-append.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
imap-authzid.c 4a8f6869db English: use American spelling consistently il y a 2 ans
imap-copy.c d8f6e5dc8e misc: update copyright year range il y a 2 ans
imap-create.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
imap-delete.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
imap-examine.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
imap-fetch.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
imap-list.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
imap-lsub.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
imap-multi.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples il y a 3 ans
imap-noop.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
imap-search.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
imap-ssl.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
imap-store.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
imap-tls.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
makefile.dj 4d2f800677 curl.se: new home il y a 4 ans
multi-app.c 60080202bb examples/multi-app.c: call curl_multi_remove_handle as well il y a 2 ans
multi-debugcallback.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
multi-double.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples il y a 3 ans
multi-event.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
multi-formadd.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples il y a 3 ans
multi-legacy.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
multi-post.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples il y a 3 ans
multi-single.c e1b04106f8 examples/multi-single.c: remove WAITMS() il y a 2 ans
multi-uv.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
multithread.c d4d53d99b1 mailing lists: move from cool.haxx.se to lists.haxx.se il y a 3 ans
opensslthreadlock.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
parseurl.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
persistent.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
pop3-authzid.c 4a8f6869db English: use American spelling consistently il y a 2 ans
pop3-dele.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
pop3-list.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
pop3-multi.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples il y a 3 ans
pop3-noop.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
pop3-retr.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
pop3-ssl.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
pop3-stat.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
pop3-tls.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
pop3-top.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
pop3-uidl.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
post-callback.c f2ed79d8ee docs/examples: adjust prototypes for CURLOPT_READFUNCTION il y a 3 ans
postinmemory.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
postit2-formadd.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
postit2.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
progressfunc.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
resolve.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
rtsp.c 21248e052d checksrc: detect more kinds of NULL comparisons we avoid il y a 2 ans
sendrecv.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format il y a 2 ans
sepheaders.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
sessioninfo.c 4d2f800677 curl.se: new home il y a 4 ans
sftpget.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
sftpuploadresume.c d8f6e5dc8e misc: update copyright year range il y a 2 ans
shared-connection-cache.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
simple.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
simplepost.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
simplessl.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
smooth-gtk-thread.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
smtp-authzid.c 4a8f6869db English: use American spelling consistently il y a 2 ans
smtp-expn.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
smtp-mail.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
smtp-mime.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
smtp-multi.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
smtp-ssl.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
smtp-tls.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
smtp-vrfy.c 7a92f865b4 misc: s/e-mail/email il y a 2 ans
sslbackend.c 4d2f800677 curl.se: new home il y a 4 ans
synctime.c 4a8f6869db English: use American spelling consistently il y a 2 ans
threaded-ssl.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans
url2file.c ac0a88fd25 copyright: fix year ranges il y a 4 ans
urlapi.c 3363eeb262 urlapi: add curl_url_strerror() il y a 3 ans
usercertinmem.c 063d3f3b96 tidy-up: make conditional checks more consistent il y a 3 ans
version-check.pl 4d2f800677 curl.se: new home il y a 4 ans
xmlstream.c a28464ae77 docs: reduce/avoid English contractions il y a 3 ans

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