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

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.