Daniel Stenberg faeec840f3 checksrc: invoke script with -D to find .checksrc proper 4 år sedan
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 4 år sedan
.gitignore 251cabfb4a examples: Update .gitignore 5 år sedan
10-at-a-time.c dd7d7107c7 examples: only include <curl/curl.h> 5 år sedan
Makefile.am faeec840f3 checksrc: invoke script with -D to find .checksrc proper 4 år sedan
Makefile.example 9a8b3b3e13 copyright: fix out-of-date copyright ranges and missing headers 4 år sedan
Makefile.inc 9d47ff5323 examples: remove asiohiper.cpp 4 år sedan
Makefile.m32 e13357b14b content_encoding: add zstd decoding support 4 år sedan
Makefile.netware 9a8b3b3e13 copyright: fix out-of-date copyright ranges and missing headers 4 år sedan
README 99d17a5e2b examples/README: cut out the incomplete list 9 år sedan
adddocsref.pl 9a8b3b3e13 copyright: fix out-of-date copyright ranges and missing headers 4 år sedan
altsvc.c f3c34bf83c examples: add http3.c, altsvc.c and http3-present.c 5 år sedan
anyauthput.c 308c243db5 all: fix codespell errors 4 år sedan
cacertinmem.c f91baf842a examples: remove dead variable stores 5 år sedan
certinfo.c efc7c1d86f typecheck-gcc.h: check CURLINFO_CERTINFO 7 år sedan
chkspeed.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
cookie_interface.c efc696a2e0 docs/examples: URL updates 6 år sedan
crawler.c 207a6cbb90 src: Remove C99 constructs to ensure C89 compliance 4 år sedan
curlgtk.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
curlx.c 308c243db5 all: fix codespell errors 4 år sedan
debug.c efc696a2e0 docs/examples: URL updates 6 år sedan
ephiperfifo.c 0f55269aff copyright: update mismatched copyright years 4 år sedan
evhiperfifo.c 159ea554af examples: fix "clarify calculation precedence" warnings 5 år sedan
externalsocket.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
fileupload.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
fopen.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
ftp-wildcard.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
ftpget.c b4beb3b115 examples: remove superfluous null-pointer checks 5 år sedan
ftpgetinfo.c 8ece8177f1 cleanup: remove FIXME and TODO comments 5 år sedan
ftpgetresp.c 3a6563d668 examples: adhere to curl code style 8 år sedan
ftpsget.c b4beb3b115 examples: remove superfluous null-pointer checks 5 år sedan
ftpupload.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
ftpuploadfrommem.c 6cba8dacea examples: fixed too long line and too long string warnings 7 år sedan
ftpuploadresume.c d18941ea17 examples/ftpuploadresume: checksrc compliance 7 år sedan
getinfo.c efc696a2e0 docs/examples: URL updates 6 år sedan
getinmemory.c efc696a2e0 docs/examples: URL updates 6 år sedan
getredirect.c efc696a2e0 docs/examples: URL updates 6 år sedan
ghiper.c 159ea554af examples: fix "clarify calculation precedence" warnings 5 år sedan
hiperfifo.c 32d64b2e87 defines: avoid underscore-prefixed defines 5 år sedan
href_extractor.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
htmltidy.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
htmltitle.cpp d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
http-post.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
http2-download.c 0f55269aff copyright: update mismatched copyright years 4 år sedan
http2-pushinmemory.c ef38059f7e examples/http2-pushinmemory: receive HTTP/2 pushed files in memory 6 år sedan
http2-serverpush.c af143ef45e examples/http2-serverpush: add some sensible error checks 5 år sedan
http2-upload.c 0f55269aff copyright: update mismatched copyright years 4 år sedan
http3-present.c f3c34bf83c examples: add http3.c, altsvc.c and http3-present.c 5 år sedan
http3.c f3c34bf83c examples: add http3.c, altsvc.c and http3-present.c 5 år sedan
httpcustomheader.c 9bd704c02a examples/httpcustomheader: Value stored to 'res' is never read 5 år sedan
httpput.c 6b84438d9a code style: use spaces around equals signs 7 år sedan
https.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
imap-append.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
imap-authzid.c 29ec1f1981 examples: Added SASL PLAIN authorisation identity (authzid) examples 5 å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 0bc60d91de copyrights: fix copyright year range 5 år sedan
imap-lsub.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
imap-multi.c e5743f08e7 code style: use spaces around pluses 7 år sedan
imap-noop.c 0bc60d91de copyrights: fix copyright year range 5 å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 0bc60d91de copyrights: fix copyright year range 5 år sedan
imap-tls.c 3a6563d668 examples: adhere to curl code style 8 år sedan
makefile.dj 9a8b3b3e13 copyright: fix out-of-date copyright ranges and missing headers 4 år sedan
multi-app.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
multi-debugcallback.c efc696a2e0 docs/examples: URL updates 6 år sedan
multi-double.c efc696a2e0 docs/examples: URL updates 6 år sedan
multi-event.c 66b0775763 checksrc: enhance the ASTERISKSPACE and update code accordingly 4 år sedan
multi-formadd.c efc696a2e0 docs/examples: URL updates 6 år sedan
multi-poll.c ea19dbe662 examples: add multi-poll.c 5 år sedan
multi-post.c efc696a2e0 docs/examples: URL updates 6 år sedan
multi-single.c efc696a2e0 docs/examples: URL updates 6 år sedan
multi-uv.c 66b0775763 checksrc: enhance the ASTERISKSPACE and update code accordingly 4 år sedan
multithread.c 600db1e706 examples/multithread.c: call curl_global_cleanup() 4 år sedan
opensslthreadlock.c 6b84438d9a code style: use spaces around equals signs 7 år sedan
parseurl.c 5c41f88c05 examples/parseurl.c: show off the URL API a bit 6 år sedan
persistent.c efc696a2e0 docs/examples: URL updates 6 år sedan
pop3-authzid.c 29ec1f1981 examples: Added SASL PLAIN authorisation identity (authzid) examples 5 år sedan
pop3-dele.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
pop3-list.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
pop3-multi.c e5743f08e7 code style: use spaces around pluses 7 år sedan
pop3-noop.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
pop3-retr.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
pop3-ssl.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
pop3-stat.c 0bc60d91de copyrights: fix copyright year range 5 å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 0bc60d91de copyrights: fix copyright year range 5 år sedan
post-callback.c 5d916944ae examples/post-callback: use long for CURLOPT_POSTFIELDSIZE 7 år sedan
postinmemory.c 68da0b8b86 examples/postinmemory.c: Call curl_global_cleanup always 4 år sedan
postit2-formadd.c 32cc5ca7ad examples: remove the "this exact code has not been verified" 5 år sedan
postit2.c 32cc5ca7ad examples: remove the "this exact code has not been verified" 5 år sedan
progressfunc.c efc696a2e0 docs/examples: URL updates 6 år sedan
resolve.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
rtsp.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
sampleconv.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
sendrecv.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
sepheaders.c efc696a2e0 docs/examples: URL updates 6 år sedan
sessioninfo.c e37dc71eae examples/sessioninfo.c: add include to fix compiler warning 4 år sedan
sftpget.c b4beb3b115 examples: remove superfluous null-pointer checks 5 år sedan
sftpuploadresume.c f91baf842a examples: remove dead variable stores 5 år sedan
shared-connection-cache.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
simple.c efc696a2e0 docs/examples: URL updates 6 år sedan
simplepost.c efc696a2e0 docs/examples: URL updates 6 år sedan
simplessl.c 6b84438d9a code style: use spaces around equals signs 7 år sedan
smooth-gtk-thread.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
smtp-authzid.c 29ec1f1981 examples: Added SASL PLAIN authorisation identity (authzid) examples 5 år sedan
smtp-expn.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
smtp-mail.c 7ef0c2d861 examples/smtp-mail.c: use separate defines for options and mail 7 år sedan
smtp-mime.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
smtp-multi.c e5743f08e7 code style: use spaces around pluses 7 år sedan
smtp-ssl.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
smtp-tls.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
smtp-vrfy.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
sslbackend.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
synctime.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
threaded-shared-conn.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
threaded-ssl.c d0319adb0c copyrights: update all copyright notices to 2019 on files changed this year 5 år sedan
url2file.c 4c2f5d52ba url2file.c: fix copyright year 4 år sedan
urlapi.c 5c4fe0d826 setopt: add CURLOPT_CURLU 6 år sedan
usercertinmem.c 0bc60d91de copyrights: fix copyright year range 5 år sedan
version-check.pl 9a8b3b3e13 copyright: fix out-of-date copyright ranges and missing headers 4 år sedan
xmlstream.c efc696a2e0 docs/examples: URL updates 6 å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.