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

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.