Marcel Raad ce2cc568f8 Makefile.m32: enable -W for MinGW32 build 7 år sedan
..
.gitignore a47137c4a5 docs/examples: gitignore some more built examples 9 år sedan
10-at-a-time.c 8657c268e1 checksrc: white space edits to comply to stricter checksrc 8 år sedan
Makefile.am 73a2fcea0b includes: remove curl/curlbuild.h and curl/curlrules.h 7 år sedan
Makefile.example 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
Makefile.inc e7f8ac1945 examples: ftpuploadfrommem.c 7 år sedan
Makefile.m32 ce2cc568f8 Makefile.m32: enable -W for MinGW32 build 7 år sedan
Makefile.netware f7df67cff0 spelling fixes 7 år sedan
README 99d17a5e2b examples/README: cut out the incomplete list 9 år sedan
adddocsref.pl 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
anyauthput.c 35311b22b9 anyauthput: remove unused code 7 år sedan
asiohiper.cpp d6bb1f1d56 asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input 7 år sedan
cacertinmem.c f7df67cff0 spelling fixes 7 år sedan
certinfo.c efc7c1d86f typecheck-gcc.h: check CURLINFO_CERTINFO 7 år sedan
chkspeed.c 3a6563d668 examples: adhere to curl code style 8 år sedan
cookie_interface.c 77b90997dd cookie_interface: fix -Wcomma warning 7 år sedan
curlgtk.c 3a6563d668 examples: adhere to curl code style 8 år sedan
curlx.c f7df67cff0 spelling fixes 7 år sedan
debug.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings 7 år sedan
evhiperfifo.c d6bb1f1d56 asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input 7 år sedan
externalsocket.c c5de7f50f7 examples/externalsocket.c: s/closesocket/closecb 7 år sedan
fileupload.c dfcdaaba37 examples/fileupload.c: fclose the file as well 8 år sedan
fopen.c c23177d5e9 examples: declare TU-local variables static 7 år sedan
ftp-wildcard.c 3a6563d668 examples: adhere to curl code style 8 år sedan
ftpget.c 3a6563d668 examples: adhere to curl code style 8 år sedan
ftpgetinfo.c 3a6563d668 examples: adhere to curl code style 8 år sedan
ftpgetresp.c 3a6563d668 examples: adhere to curl code style 8 år sedan
ftpsget.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
ftpupload.c b228d2952b checksrc: stricter no-space-before-paren enforcement 8 år sedan
ftpuploadfrommem.c 6cba8dacea examples: fixed too long line and too long string warnings 7 år sedan
ftpuploadresume.c dbadaebfc4 checksrc: code style: use 'char *name' style 8 år sedan
getinfo.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
getinmemory.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
getredirect.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
ghiper.c e5491e0f9c ghiper.c/hiperfifo.c: add comment about missing timer functionality 7 år sedan
hiperfifo.c e5491e0f9c ghiper.c/hiperfifo.c: add comment about missing timer functionality 7 år sedan
href_extractor.c 3a6563d668 examples: adhere to curl code style 8 år sedan
htmltidy.c 6ddab23fb1 docs/examples: remove spurious white spaces all over 8 år sedan
htmltitle.cpp a41e8592d6 examples: make the C++ examples follow our code style too 7 år sedan
http-post.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
http2-download.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings 7 år sedan
http2-serverpush.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings 7 år sedan
http2-upload.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings 7 år sedan
httpcustomheader.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
httpput.c 3a6563d668 examples: adhere to curl code style 8 år sedan
https.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
imap-append.c 45c1c54c42 examples/imap-append: Set size of data to be uploaded 8 år sedan
imap-copy.c f7df67cff0 spelling fixes 7 år sedan
imap-create.c f7df67cff0 spelling fixes 7 år sedan
imap-delete.c f7df67cff0 spelling fixes 7 år sedan
imap-examine.c f7df67cff0 spelling fixes 7 år sedan
imap-fetch.c 3a6563d668 examples: adhere to curl code style 8 år sedan
imap-list.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
imap-lsub.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
imap-multi.c 3a6563d668 examples: adhere to curl code style 8 år sedan
imap-noop.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
imap-search.c f7df67cff0 spelling fixes 7 år sedan
imap-ssl.c 3a6563d668 examples: adhere to curl code style 8 år sedan
imap-store.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
imap-tls.c 3a6563d668 examples: adhere to curl code style 8 år sedan
makefile.dj 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
multi-app.c b228d2952b checksrc: stricter no-space-before-paren enforcement 8 år sedan
multi-debugcallback.c b4d87f54d6 examples: fix Wimplicit-fallthrough warnings 7 år sedan
multi-double.c 3a6563d668 examples: adhere to curl code style 8 år sedan
multi-post.c b228d2952b checksrc: stricter no-space-before-paren enforcement 8 år sedan
multi-single.c 3a6563d668 examples: adhere to curl code style 8 år sedan
multi-uv.c bc164de7b3 examples/multi-uv.c: fix deprecated symbol 7 år sedan
multithread.c bef0d00110 examples/multithread.c: link to our multi-thread docs 7 år sedan
opensslthreadlock.c dbadaebfc4 checksrc: code style: use 'char *name' style 8 år sedan
persistant.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-dele.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-list.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-multi.c 3a6563d668 examples: adhere to curl code style 8 år sedan
pop3-noop.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-retr.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-ssl.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-stat.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
pop3-tls.c 3a6563d668 examples: adhere to curl code style 8 år sedan
pop3-top.c f7df67cff0 spelling fixes 7 år sedan
pop3-uidl.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
post-callback.c c23177d5e9 examples: declare TU-local variables static 7 år sedan
postinmemory.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
postit2.c b228d2952b checksrc: stricter no-space-before-paren enforcement 8 år sedan
progressfunc.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
resolve.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
rtsp.c 1c3e8bbfed checksrc: warn for assignments within if() expressions 8 år sedan
sampleconv.c 501b9ebe92 examples/sampleconv.c: indent changes, made callbacks static 7 år sedan
sendrecv.c d99acd937a sendrecv: fix MinGW-w64 warning 7 år sedan
sepheaders.c d202fbcc00 examples: fix some compiler warnings 8 år sedan
sessioninfo.c 27302abb94 s/cURL/curl 8 år sedan
sftpget.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
simple.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
simplepost.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
simplessl.c 0c671a1501 simplessl.c: warning: while with space 8 år sedan
smooth-gtk-thread.c b228d2952b checksrc: stricter no-space-before-paren enforcement 8 år sedan
smtp-expn.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
smtp-mail.c 3a6563d668 examples: adhere to curl code style 8 år sedan
smtp-multi.c 3a6563d668 examples: adhere to curl code style 8 år sedan
smtp-ssl.c 3a6563d668 examples: adhere to curl code style 8 år sedan
smtp-tls.c 3a6563d668 examples: adhere to curl code style 8 år sedan
smtp-vrfy.c 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
synctime.c b228d2952b checksrc: stricter no-space-before-paren enforcement 8 år sedan
threaded-ssl.c 3a6563d668 examples: adhere to curl code style 8 år sedan
url2file.c 6ddab23fb1 docs/examples: remove spurious white spaces all over 8 år sedan
usercertinmem.c 3a4326efd5 usercertinmem.c: improve the short description 7 år sedan
version-check.pl 4af40b3646 URLs: change all http:// URLs to https:// 8 år sedan
xmlstream.c 3a6563d668 examples: adhere to curl code style 8 år sedan

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.