Marcel Raad ce2cc568f8 Makefile.m32: enable -W for MinGW32 build %!s(int64=7) %!d(string=hai) anos
..
.gitignore a47137c4a5 docs/examples: gitignore some more built examples %!s(int64=9) %!d(string=hai) anos
10-at-a-time.c 8657c268e1 checksrc: white space edits to comply to stricter checksrc %!s(int64=8) %!d(string=hai) anos
Makefile.am 73a2fcea0b includes: remove curl/curlbuild.h and curl/curlrules.h %!s(int64=7) %!d(string=hai) anos
Makefile.example 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
Makefile.inc e7f8ac1945 examples: ftpuploadfrommem.c %!s(int64=7) %!d(string=hai) anos
Makefile.m32 ce2cc568f8 Makefile.m32: enable -W for MinGW32 build %!s(int64=7) %!d(string=hai) anos
Makefile.netware f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
README 99d17a5e2b examples/README: cut out the incomplete list %!s(int64=9) %!d(string=hai) anos
adddocsref.pl 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
anyauthput.c 35311b22b9 anyauthput: remove unused code %!s(int64=7) %!d(string=hai) anos
asiohiper.cpp d6bb1f1d56 asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input %!s(int64=7) %!d(string=hai) anos
cacertinmem.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
certinfo.c efc7c1d86f typecheck-gcc.h: check CURLINFO_CERTINFO %!s(int64=7) %!d(string=hai) anos
chkspeed.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
cookie_interface.c 77b90997dd cookie_interface: fix -Wcomma warning %!s(int64=7) %!d(string=hai) anos
curlgtk.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
curlx.c f7df67cff0 spelling fixes %!s(int64=7) %!d(string=hai) anos
debug.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings %!s(int64=7) %!d(string=hai) anos
evhiperfifo.c d6bb1f1d56 asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input %!s(int64=7) %!d(string=hai) anos
externalsocket.c c5de7f50f7 examples/externalsocket.c: s/closesocket/closecb %!s(int64=7) %!d(string=hai) anos
fileupload.c dfcdaaba37 examples/fileupload.c: fclose the file as well %!s(int64=8) %!d(string=hai) anos
fopen.c c23177d5e9 examples: declare TU-local variables static %!s(int64=7) %!d(string=hai) anos
ftp-wildcard.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
ftpget.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!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 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
ftpupload.c b228d2952b checksrc: stricter no-space-before-paren enforcement %!s(int64=8) %!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 dbadaebfc4 checksrc: code style: use 'char *name' style %!s(int64=8) %!d(string=hai) anos
getinfo.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
getinmemory.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
getredirect.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
ghiper.c e5491e0f9c ghiper.c/hiperfifo.c: add comment about missing timer functionality %!s(int64=7) %!d(string=hai) anos
hiperfifo.c e5491e0f9c ghiper.c/hiperfifo.c: add comment about missing timer functionality %!s(int64=7) %!d(string=hai) anos
href_extractor.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
htmltidy.c 6ddab23fb1 docs/examples: remove spurious white spaces all over %!s(int64=8) %!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 b4d87f54d6 examples: fix Wimplicit-fallthrough warnings %!s(int64=7) %!d(string=hai) anos
http2-serverpush.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings %!s(int64=7) %!d(string=hai) anos
http2-upload.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings %!s(int64=7) %!d(string=hai) anos
httpcustomheader.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
httpput.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!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 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!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 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
multi-app.c b228d2952b checksrc: stricter no-space-before-paren enforcement %!s(int64=8) %!d(string=hai) anos
multi-debugcallback.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings %!s(int64=7) %!d(string=hai) anos
multi-double.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
multi-post.c b228d2952b checksrc: stricter no-space-before-paren enforcement %!s(int64=8) %!d(string=hai) anos
multi-single.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
multi-uv.c bc164de7b3 examples/multi-uv.c: fix deprecated symbol %!s(int64=7) %!d(string=hai) anos
multithread.c bef0d00110 examples/multithread.c: link to our multi-thread docs %!s(int64=7) %!d(string=hai) anos
opensslthreadlock.c dbadaebfc4 checksrc: code style: use 'char *name' style %!s(int64=8) %!d(string=hai) anos
persistant.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!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 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!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 c23177d5e9 examples: declare TU-local variables static %!s(int64=7) %!d(string=hai) anos
postinmemory.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
postit2.c b228d2952b checksrc: stricter no-space-before-paren enforcement %!s(int64=8) %!d(string=hai) anos
progressfunc.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
resolve.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
rtsp.c 1c3e8bbfed checksrc: warn for assignments within if() expressions %!s(int64=8) %!d(string=hai) anos
sampleconv.c 501b9ebe92 examples/sampleconv.c: indent changes, made callbacks static %!s(int64=7) %!d(string=hai) anos
sendrecv.c d99acd937a sendrecv: fix MinGW-w64 warning %!s(int64=7) %!d(string=hai) anos
sepheaders.c d202fbcc00 examples: fix some compiler warnings %!s(int64=8) %!d(string=hai) anos
sessioninfo.c 27302abb94 s/cURL/curl %!s(int64=8) %!d(string=hai) anos
sftpget.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
simple.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
simplepost.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
simplessl.c 0c671a1501 simplessl.c: warning: while with space %!s(int64=8) %!d(string=hai) anos
smooth-gtk-thread.c b228d2952b checksrc: stricter no-space-before-paren enforcement %!s(int64=8) %!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 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
smtp-multi.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
smtp-ssl.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
smtp-tls.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
smtp-vrfy.c 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
synctime.c b228d2952b checksrc: stricter no-space-before-paren enforcement %!s(int64=8) %!d(string=hai) anos
threaded-ssl.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!d(string=hai) anos
url2file.c 6ddab23fb1 docs/examples: remove spurious white spaces all over %!s(int64=8) %!d(string=hai) anos
usercertinmem.c 3a4326efd5 usercertinmem.c: improve the short description %!s(int64=7) %!d(string=hai) anos
version-check.pl 4af40b3646 URLs: change all http:// URLs to https:// %!s(int64=8) %!d(string=hai) anos
xmlstream.c 3a6563d668 examples: adhere to curl code style %!s(int64=8) %!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.