Daniel Stenberg 091cdf2795 10-at-a-time.c: fix too long line %!s(int64=5) %!d(string=hai) anos
..
.gitignore 251cabfb4a examples: Update .gitignore %!s(int64=5) %!d(string=hai) anos
10-at-a-time.c 091cdf2795 10-at-a-time.c: fix too long line %!s(int64=5) %!d(string=hai) anos
Makefile.am dcd6f81025 snprintf: renamed and we now only use msnprintf() %!s(int64=6) %!d(string=hai) anos
Makefile.example 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
Makefile.inc 5c4fe0d826 setopt: add CURLOPT_CURLU %!s(int64=6) %!d(string=hai) anos
Makefile.m32 c42849bb48 examples/Makefile.m32: sync with core [ci skip] %!s(int64=6) %!d(string=hai) anos
Makefile.netware 302d125b42 axtls: removed %!s(int64=6) %!d(string=hai) anos
README 99d17a5e2b examples/README: cut out the incomplete list %!s(int64=9) %!d(string=hai) anos
adddocsref.pl d4e40f0690 scripts: allow all perl scripts to be run directly %!s(int64=6) %!d(string=hai) anos
anyauthput.c 6a7feb103a anyauthput: fix compiler warning on 64-bit Windows %!s(int64=6) %!d(string=hai) anos
asiohiper.cpp 00c3254595 example/asiohiper: insert warning comment about its status %!s(int64=6) %!d(string=hai) anos
cacertinmem.c 0f6c6efd81 cacertinmem.c: use multiple certificates for loading CA-chain %!s(int64=5) %!d(string=hai) anos
certinfo.c efc7c1d86f typecheck-gcc.h: check CURLINFO_CERTINFO %!s(int64=7) %!d(string=hai) anos
chkspeed.c ce2140a8c1 getinfo: add microsecond precise timers for various intervals %!s(int64=6) %!d(string=hai) anos
cookie_interface.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
crawler.c db239c07af examples/crawler: Fix the Accept-Encoding setting %!s(int64=5) %!d(string=hai) anos
curlgtk.c b801b453af whitespace fixes %!s(int64=6) %!d(string=hai) anos
curlx.c 23524bf85b examples: Fix memory leaks from realloc errors %!s(int64=6) %!d(string=hai) anos
debug.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
ephiperfifo.c a977d93805 examples: various fixes in ephiperfifo.c %!s(int64=5) %!d(string=hai) anos
evhiperfifo.c 47e540df8f examples: remove recursive calls to curl_multi_socket_action %!s(int64=5) %!d(string=hai) anos
externalsocket.c c5de7f50f7 examples/externalsocket.c: s/closesocket/closecb %!s(int64=7) %!d(string=hai) anos
fileupload.c ce2140a8c1 getinfo: add microsecond precise timers for various intervals %!s(int64=6) %!d(string=hai) anos
fopen.c 94400f32e9 all: Refactor malloc+memset to use calloc %!s(int64=6) %!d(string=hai) anos
ftp-wildcard.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
ftpget.c b4beb3b115 examples: remove superfluous null-pointer checks %!s(int64=5) %!d(string=hai) anos
ftpgetinfo.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
ftpgetresp.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
ftpsget.c b4beb3b115 examples: remove superfluous null-pointer checks %!s(int64=5) %!d(string=hai) anos
ftpupload.c 7e35eb7729 spelling fixes %!s(int64=6) %!d(string=hai) anos
ftpuploadfrommem.c 6cba8dacea examples: fixed too long line and too long string warnings %!s(int64=7) %!d(string=hai) anos
ftpuploadresume.c d18941ea17 examples/ftpuploadresume: checksrc compliance %!s(int64=7) %!d(string=hai) anos
getinfo.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
getinmemory.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
getredirect.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
ghiper.c 47e540df8f examples: remove recursive calls to curl_multi_socket_action %!s(int64=5) %!d(string=hai) anos
hiperfifo.c 47e540df8f examples: remove recursive calls to curl_multi_socket_action %!s(int64=5) %!d(string=hai) anos
href_extractor.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
htmltidy.c 063f9a4c8b example/htmltidy: fix include paths of tidy libraries %!s(int64=6) %!d(string=hai) anos
htmltitle.cpp a41e8592d6 examples: make the C++ examples follow our code style too %!s(int64=7) %!d(string=hai) anos
http-post.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
http2-download.c b2e5af4aec examples/http2-download: cleaned up %!s(int64=5) %!d(string=hai) anos
http2-pushinmemory.c ef38059f7e examples/http2-pushinmemory: receive HTTP/2 pushed files in memory %!s(int64=6) %!d(string=hai) anos
http2-serverpush.c af143ef45e examples/http2-serverpush: add some sensible error checks %!s(int64=5) %!d(string=hai) anos
http2-upload.c 25233d9478 examples/http2-upload: cleaned up %!s(int64=5) %!d(string=hai) anos
httpcustomheader.c 9bd704c02a examples/httpcustomheader: Value stored to 'res' is never read %!s(int64=5) %!d(string=hai) anos
httpput.c 6b84438d9a code style: use spaces around equals signs %!s(int64=7) %!d(string=hai) anos
https.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
imap-append.c 45c1c54c42 examples/imap-append: Set size of data to be uploaded %!s(int64=8) %!d(string=hai) anos
imap-copy.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
imap-create.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
imap-delete.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
imap-examine.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
imap-fetch.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
imap-list.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
imap-lsub.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
imap-multi.c e5743f08e7 code style: use spaces around pluses %!s(int64=7) %!d(string=hai) anos
imap-noop.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
imap-search.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
imap-ssl.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
imap-store.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
imap-tls.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
makefile.dj b801b453af whitespace fixes %!s(int64=6) %!d(string=hai) anos
multi-app.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multi-debugcallback.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multi-double.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multi-formadd.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multi-post.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multi-single.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multi-uv.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
multithread.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
opensslthreadlock.c 6b84438d9a code style: use spaces around equals signs %!s(int64=7) %!d(string=hai) anos
parseurl.c 5c41f88c05 examples/parseurl.c: show off the URL API a bit %!s(int64=6) %!d(string=hai) anos
persistent.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
pop3-dele.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
pop3-list.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
pop3-multi.c e5743f08e7 code style: use spaces around pluses %!s(int64=7) %!d(string=hai) anos
pop3-noop.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
pop3-retr.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
pop3-ssl.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
pop3-stat.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
pop3-tls.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
pop3-top.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
pop3-uidl.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
post-callback.c 5d916944ae examples/post-callback: use long for CURLOPT_POSTFIELDSIZE %!s(int64=7) %!d(string=hai) anos
postinmemory.c 52d98194b5 examples/postinmemory: Potential leak of memory pointed to by 'chunk.memory' %!s(int64=5) %!d(string=hai) anos
postit2-formadd.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
postit2.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
progressfunc.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
resolve.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
rtsp.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
sampleconv.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
sendrecv.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
sepheaders.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
sessioninfo.c 13505dcb55 examples: Fix format specifiers %!s(int64=6) %!d(string=hai) anos
sftpget.c b4beb3b115 examples: remove superfluous null-pointer checks %!s(int64=5) %!d(string=hai) anos
sftpuploadresume.c 5341c65667 examples/sftpuploadresume: Value stored to 'result' is never read %!s(int64=5) %!d(string=hai) anos
shared-connection-cache.c 236402fc2d cleanup: misc typos in strings and comments %!s(int64=6) %!d(string=hai) anos
simple.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
simplepost.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
simplessl.c 6b84438d9a code style: use spaces around equals signs %!s(int64=7) %!d(string=hai) anos
smooth-gtk-thread.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
smtp-expn.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
smtp-mail.c 7ef0c2d861 examples/smtp-mail.c: use separate defines for options and mail %!s(int64=7) %!d(string=hai) anos
smtp-mime.c 4bd91bc474 spelling fixes %!s(int64=6) %!d(string=hai) anos
smtp-multi.c e5743f08e7 code style: use spaces around pluses %!s(int64=7) %!d(string=hai) anos
smtp-ssl.c 25fc694a41 examples/mime: minor example code fixes %!s(int64=7) %!d(string=hai) anos
smtp-tls.c 25fc694a41 examples/mime: minor example code fixes %!s(int64=7) %!d(string=hai) anos
smtp-vrfy.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
sslbackend.c 60776a0515 curl-compilers: enable -Wbad-function-cast on GCC %!s(int64=6) %!d(string=hai) anos
synctime.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos
threaded-shared-conn.c 4bd91bc474 spelling fixes %!s(int64=6) %!d(string=hai) anos
threaded-ssl.c 6b84438d9a code style: use spaces around equals signs %!s(int64=7) %!d(string=hai) anos
url2file.c da07dbb869 examples/url2file.c: add missing curl_global_cleanup() call %!s(int64=6) %!d(string=hai) anos
urlapi.c 5c4fe0d826 setopt: add CURLOPT_CURLU %!s(int64=6) %!d(string=hai) anos
usercertinmem.c 6b84438d9a code style: use spaces around equals signs %!s(int64=7) %!d(string=hai) anos
version-check.pl b801b453af whitespace fixes %!s(int64=6) %!d(string=hai) anos
xmlstream.c efc696a2e0 docs/examples: URL updates %!s(int64=6) %!d(string=hai) anos

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.