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

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.