Ayesh Karunaratne 4484270afc misc: typo and grammar fixes il y a 2 ans
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime il y a 4 ans
.gitignore ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
10-at-a-time.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
Makefile.am ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
Makefile.example ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
Makefile.inc 5357686fdf examples/curlx.c: remove il y a 2 ans
Makefile.m32 784400806c Makefile.m32: deduplicate build rules [ci skip] il y a 2 ans
README.md fd1ce3d4b0 docs: spellfixes il y a 2 ans
adddocsref.pl ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
altsvc.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
anyauthput.c 4484270afc misc: typo and grammar fixes il y a 2 ans
cacertinmem.c 4484270afc misc: typo and grammar fixes il y a 2 ans
certinfo.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
chkspeed.c c3e634d066 examples/chkspeed: improve portability il y a 2 ans
cookie_interface.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
crawler.c 07a9b89fed examples/crawler.c: use the curl license il y a 2 ans
curlgtk.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
debug.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ephiperfifo.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
evhiperfifo.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
externalsocket.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
fileupload.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ftp-wildcard.c ddeec8feba misc: nitpick grammar in comments/docs il y a 2 ans
ftpget.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ftpgetinfo.c 83de62babc docs/examples: avoid deprecated options in examples where possible il y a 2 ans
ftpgetresp.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ftpsget.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ftpupload.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ftpuploadfrommem.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ftpuploadresume.c be43dd600a CURLOPT_SERVER_RESPONSE_TIMEOUT: the new name il y a 2 ans
getinfo.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
getinmemory.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
getredirect.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
getreferrer.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
ghiper.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
headerapi.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
hiperfifo.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
href_extractor.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
htmltidy.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
htmltitle.cpp ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
http-post.c 4484270afc misc: typo and grammar fixes il y a 2 ans
http2-download.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
http2-pushinmemory.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
http2-serverpush.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
http2-upload.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
http3-present.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
http3.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
httpcustomheader.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
httpput-postfields.c 4484270afc misc: typo and grammar fixes il y a 2 ans
httpput.c 4484270afc misc: typo and grammar fixes il y a 2 ans
https.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-append.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-authzid.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-copy.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-create.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-delete.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-examine.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-fetch.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-list.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-lsub.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-multi.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-noop.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-search.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-ssl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-store.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
imap-tls.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
makefile.dj ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
multi-app.c 4484270afc misc: typo and grammar fixes il y a 2 ans
multi-debugcallback.c 4484270afc misc: typo and grammar fixes il y a 2 ans
multi-double.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
multi-event.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
multi-formadd.c 83de62babc docs/examples: avoid deprecated options in examples where possible il y a 2 ans
multi-legacy.c 4484270afc misc: typo and grammar fixes il y a 2 ans
multi-post.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
multi-single.c 4484270afc misc: typo and grammar fixes il y a 2 ans
multi-uv.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
multithread.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
opensslthreadlock.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
parseurl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
persistent.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-authzid.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-dele.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-list.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-multi.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-noop.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-retr.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-ssl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-stat.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-tls.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-top.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
pop3-uidl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
post-callback.c 4484270afc misc: typo and grammar fixes il y a 2 ans
postinmemory.c 4484270afc misc: typo and grammar fixes il y a 2 ans
postit2-formadd.c 83de62babc docs/examples: avoid deprecated options in examples where possible il y a 2 ans
postit2.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
progressfunc.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
resolve.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
sendrecv.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
sepheaders.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
sessioninfo.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
sftpget.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
sftpuploadresume.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
shared-connection-cache.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
simple.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
simplepost.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
simplessl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smooth-gtk-thread.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-authzid.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-expn.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-mail.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-mime.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-multi.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-ssl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-tls.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
smtp-vrfy.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
sslbackend.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
synctime.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
threaded-ssl.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
url2file.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
urlapi.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
usercertinmem.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
version-check.pl ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans
xmlstream.c ad9bc5976d copyright: make repository REUSE compliant il y a 2 ans

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.