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

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.