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

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.