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

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.