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

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.