Daniel Stenberg 0bc60d91de copyrights: fix copyright year range před 4 roky
..
.gitignore 251cabfb4a examples: Update .gitignore před 5 roky
10-at-a-time.c dd7d7107c7 examples: only include <curl/curl.h> před 5 roky
Makefile.am 5cf5d57ab9 makefile: make checksrc and hugefile commands "silent" před 5 roky
Makefile.example 4af40b3646 URLs: change all http:// URLs to https:// před 8 roky
Makefile.inc b905e26b05 docs: added multi-event.c example před 5 roky
Makefile.m32 c42849bb48 examples/Makefile.m32: sync with core [ci skip] před 6 roky
Makefile.netware 302d125b42 axtls: removed před 5 roky
README 99d17a5e2b examples/README: cut out the incomplete list před 8 roky
adddocsref.pl d4e40f0690 scripts: allow all perl scripts to be run directly před 6 roky
altsvc.c f3c34bf83c examples: add http3.c, altsvc.c and http3-present.c před 5 roky
anyauthput.c 0bc60d91de copyrights: fix copyright year range před 4 roky
asiohiper.cpp 00c3254595 example/asiohiper: insert warning comment about its status před 6 roky
cacertinmem.c f91baf842a examples: remove dead variable stores před 5 roky
certinfo.c efc7c1d86f typecheck-gcc.h: check CURLINFO_CERTINFO před 7 roky
chkspeed.c 0bc60d91de copyrights: fix copyright year range před 4 roky
cookie_interface.c efc696a2e0 docs/examples: URL updates před 6 roky
crawler.c 0bc60d91de copyrights: fix copyright year range před 4 roky
curlgtk.c 0bc60d91de copyrights: fix copyright year range před 4 roky
curlx.c 0bc60d91de copyrights: fix copyright year range před 4 roky
debug.c efc696a2e0 docs/examples: URL updates před 6 roky
ephiperfifo.c 32d64b2e87 defines: avoid underscore-prefixed defines před 5 roky
evhiperfifo.c 159ea554af examples: fix "clarify calculation precedence" warnings před 5 roky
externalsocket.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
fileupload.c 0bc60d91de copyrights: fix copyright year range před 4 roky
fopen.c 0bc60d91de copyrights: fix copyright year range před 4 roky
ftp-wildcard.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
ftpget.c b4beb3b115 examples: remove superfluous null-pointer checks před 5 roky
ftpgetinfo.c 8ece8177f1 cleanup: remove FIXME and TODO comments před 5 roky
ftpgetresp.c 3a6563d668 examples: adhere to curl code style před 8 roky
ftpsget.c b4beb3b115 examples: remove superfluous null-pointer checks před 5 roky
ftpupload.c 0bc60d91de copyrights: fix copyright year range před 4 roky
ftpuploadfrommem.c 6cba8dacea examples: fixed too long line and too long string warnings před 7 roky
ftpuploadresume.c d18941ea17 examples/ftpuploadresume: checksrc compliance před 7 roky
getinfo.c efc696a2e0 docs/examples: URL updates před 6 roky
getinmemory.c efc696a2e0 docs/examples: URL updates před 6 roky
getredirect.c efc696a2e0 docs/examples: URL updates před 6 roky
ghiper.c 159ea554af examples: fix "clarify calculation precedence" warnings před 5 roky
hiperfifo.c 32d64b2e87 defines: avoid underscore-prefixed defines před 5 roky
href_extractor.c 0bc60d91de copyrights: fix copyright year range před 4 roky
htmltidy.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
htmltitle.cpp d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
http-post.c 0bc60d91de copyrights: fix copyright year range před 4 roky
http2-download.c 918987a844 http2-download: fix format specifier před 5 roky
http2-pushinmemory.c ef38059f7e examples/http2-pushinmemory: receive HTTP/2 pushed files in memory před 6 roky
http2-serverpush.c af143ef45e examples/http2-serverpush: add some sensible error checks před 5 roky
http2-upload.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
http3-present.c f3c34bf83c examples: add http3.c, altsvc.c and http3-present.c před 5 roky
http3.c f3c34bf83c examples: add http3.c, altsvc.c and http3-present.c před 5 roky
httpcustomheader.c 9bd704c02a examples/httpcustomheader: Value stored to 'res' is never read před 5 roky
httpput.c 6b84438d9a code style: use spaces around equals signs před 7 roky
https.c 0bc60d91de copyrights: fix copyright year range před 4 roky
imap-append.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
imap-authzid.c 29ec1f1981 examples: Added SASL PLAIN authorisation identity (authzid) examples před 5 roky
imap-copy.c f7df67cff0 spelling fixes před 7 roky
imap-create.c f7df67cff0 spelling fixes před 7 roky
imap-delete.c f7df67cff0 spelling fixes před 7 roky
imap-examine.c f7df67cff0 spelling fixes před 7 roky
imap-fetch.c 3a6563d668 examples: adhere to curl code style před 8 roky
imap-list.c 0bc60d91de copyrights: fix copyright year range před 4 roky
imap-lsub.c 0bc60d91de copyrights: fix copyright year range před 4 roky
imap-multi.c e5743f08e7 code style: use spaces around pluses před 7 roky
imap-noop.c 0bc60d91de copyrights: fix copyright year range před 4 roky
imap-search.c f7df67cff0 spelling fixes před 7 roky
imap-ssl.c 3a6563d668 examples: adhere to curl code style před 8 roky
imap-store.c 0bc60d91de copyrights: fix copyright year range před 4 roky
imap-tls.c 3a6563d668 examples: adhere to curl code style před 8 roky
makefile.dj b801b453af whitespace fixes před 6 roky
multi-app.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
multi-debugcallback.c efc696a2e0 docs/examples: URL updates před 6 roky
multi-double.c efc696a2e0 docs/examples: URL updates před 6 roky
multi-event.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
multi-formadd.c efc696a2e0 docs/examples: URL updates před 6 roky
multi-post.c efc696a2e0 docs/examples: URL updates před 6 roky
multi-single.c efc696a2e0 docs/examples: URL updates před 6 roky
multi-uv.c efc696a2e0 docs/examples: URL updates před 6 roky
multithread.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
opensslthreadlock.c 6b84438d9a code style: use spaces around equals signs před 7 roky
parseurl.c 5c41f88c05 examples/parseurl.c: show off the URL API a bit před 6 roky
persistent.c efc696a2e0 docs/examples: URL updates před 6 roky
pop3-authzid.c 29ec1f1981 examples: Added SASL PLAIN authorisation identity (authzid) examples před 5 roky
pop3-dele.c 0bc60d91de copyrights: fix copyright year range před 4 roky
pop3-list.c 0bc60d91de copyrights: fix copyright year range před 4 roky
pop3-multi.c e5743f08e7 code style: use spaces around pluses před 7 roky
pop3-noop.c 0bc60d91de copyrights: fix copyright year range před 4 roky
pop3-retr.c 0bc60d91de copyrights: fix copyright year range před 4 roky
pop3-ssl.c 0bc60d91de copyrights: fix copyright year range před 4 roky
pop3-stat.c 0bc60d91de copyrights: fix copyright year range před 4 roky
pop3-tls.c 3a6563d668 examples: adhere to curl code style před 8 roky
pop3-top.c f7df67cff0 spelling fixes před 7 roky
pop3-uidl.c 0bc60d91de copyrights: fix copyright year range před 4 roky
post-callback.c 5d916944ae examples/post-callback: use long for CURLOPT_POSTFIELDSIZE před 7 roky
postinmemory.c 52d98194b5 examples/postinmemory: Potential leak of memory pointed to by 'chunk.memory' před 5 roky
postit2-formadd.c 32cc5ca7ad examples: remove the "this exact code has not been verified" před 4 roky
postit2.c 32cc5ca7ad examples: remove the "this exact code has not been verified" před 4 roky
progressfunc.c efc696a2e0 docs/examples: URL updates před 6 roky
resolve.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
rtsp.c 0bc60d91de copyrights: fix copyright year range před 4 roky
sampleconv.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
sendrecv.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
sepheaders.c efc696a2e0 docs/examples: URL updates před 6 roky
sessioninfo.c 0bc60d91de copyrights: fix copyright year range před 4 roky
sftpget.c b4beb3b115 examples: remove superfluous null-pointer checks před 5 roky
sftpuploadresume.c f91baf842a examples: remove dead variable stores před 5 roky
shared-connection-cache.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
simple.c efc696a2e0 docs/examples: URL updates před 6 roky
simplepost.c efc696a2e0 docs/examples: URL updates před 6 roky
simplessl.c 6b84438d9a code style: use spaces around equals signs před 7 roky
smooth-gtk-thread.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
smtp-authzid.c 29ec1f1981 examples: Added SASL PLAIN authorisation identity (authzid) examples před 5 roky
smtp-expn.c 0bc60d91de copyrights: fix copyright year range před 4 roky
smtp-mail.c 7ef0c2d861 examples/smtp-mail.c: use separate defines for options and mail před 6 roky
smtp-mime.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
smtp-multi.c e5743f08e7 code style: use spaces around pluses před 7 roky
smtp-ssl.c 0bc60d91de copyrights: fix copyright year range před 4 roky
smtp-tls.c 0bc60d91de copyrights: fix copyright year range před 4 roky
smtp-vrfy.c 0bc60d91de copyrights: fix copyright year range před 4 roky
sslbackend.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
synctime.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
threaded-shared-conn.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
threaded-ssl.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year před 4 roky
url2file.c da07dbb869 examples/url2file.c: add missing curl_global_cleanup() call před 6 roky
urlapi.c 5c4fe0d826 setopt: add CURLOPT_CURLU před 5 roky
usercertinmem.c 0bc60d91de copyrights: fix copyright year range před 4 roky
version-check.pl b801b453af whitespace fixes před 6 roky
xmlstream.c efc696a2e0 docs/examples: URL updates před 6 roky

README

_ _ ____ _
___| | | | _ \| |
/ __| | | | |_) | |
| (__| |_| | _ <| |___
\___|\___/|_| \_\_____|

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

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 don't 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.haxx.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 doesn't mean that the URLs work or that we expect you to
actually torture our web site 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.