Patrick Monnerat c3e634d066 examples/chkspeed: improve portability %!s(int64=2) %!d(string=hai) anos
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime %!s(int64=4) %!d(string=hai) anos
.gitignore ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
10-at-a-time.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
Makefile.am ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
Makefile.example ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
Makefile.inc 5357686fdf examples/curlx.c: remove %!s(int64=2) %!d(string=hai) anos
Makefile.m32 5fd7cd7302 Makefile.m32: allow -nghttp3/-ngtcp2 without -ssl [ci skip] %!s(int64=2) %!d(string=hai) anos
README.md fd1ce3d4b0 docs: spellfixes %!s(int64=2) %!d(string=hai) anos
adddocsref.pl ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
altsvc.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
anyauthput.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
cacertinmem.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
certinfo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
chkspeed.c c3e634d066 examples/chkspeed: improve portability %!s(int64=2) %!d(string=hai) anos
cookie_interface.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
crawler.c 07a9b89fed examples/crawler.c: use the curl license %!s(int64=2) %!d(string=hai) anos
curlgtk.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
debug.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ephiperfifo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
evhiperfifo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
externalsocket.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
fileupload.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftp-wildcard.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpget.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpgetinfo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpgetresp.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpsget.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpupload.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpuploadfrommem.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ftpuploadresume.c be43dd600a CURLOPT_SERVER_RESPONSE_TIMEOUT: the new name %!s(int64=2) %!d(string=hai) anos
getinfo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
getinmemory.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
getredirect.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
getreferrer.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
ghiper.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
headerapi.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
hiperfifo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
href_extractor.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
htmltidy.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
htmltitle.cpp ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http-post.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http2-download.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http2-pushinmemory.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http2-serverpush.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http2-upload.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http3-present.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
http3.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
httpcustomheader.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
httpput-postfields.c 9eec75452c httpput-postfields.c: shorten string for C89 compliance %!s(int64=2) %!d(string=hai) anos
httpput.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
https.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-append.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-authzid.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-copy.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-create.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-delete.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-examine.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-fetch.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-list.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-lsub.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-multi.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-noop.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-search.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-ssl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-store.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
imap-tls.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
makefile.dj ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-app.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-debugcallback.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-double.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-event.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-formadd.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-legacy.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-post.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-single.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multi-uv.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
multithread.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
opensslthreadlock.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
parseurl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
persistent.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-authzid.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-dele.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-list.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-multi.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-noop.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-retr.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-ssl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-stat.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-tls.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-top.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
pop3-uidl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
post-callback.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
postinmemory.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
postit2-formadd.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
postit2.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
progressfunc.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
resolve.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
sendrecv.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
sepheaders.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
sessioninfo.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
sftpget.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
sftpuploadresume.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
shared-connection-cache.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
simple.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
simplepost.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
simplessl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smooth-gtk-thread.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-authzid.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-expn.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-mail.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-mime.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-multi.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-ssl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-tls.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
smtp-vrfy.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
sslbackend.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
synctime.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
threaded-ssl.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
url2file.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
urlapi.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
usercertinmem.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
version-check.pl ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos
xmlstream.c ad9bc5976d copyright: make repository REUSE compliant %!s(int64=2) %!d(string=hai) anos

README.md

libcurl examples

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 website.

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 do not 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.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 does not mean that the URLs work or that we expect you to actually torture our website 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.