Daniel Stenberg 1451f4d2e1 examples: remove superfluous asterisk uses 3 éve
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 3 éve
.gitignore 77b2f702c4 examples: update .gitignore 3 éve
10-at-a-time.c ac0a88fd25 copyright: fix year ranges 3 éve
Makefile.am 4d2f800677 curl.se: new home 3 éve
Makefile.example 4d2f800677 curl.se: new home 3 éve
Makefile.inc 71ec4e7d76 httpput-postfields.c: new example doing PUT with POSTFIELDS 3 éve
Makefile.m32 4d2f800677 curl.se: new home 3 éve
Makefile.netware 4d2f800677 curl.se: new home 3 éve
README.md 4d2f800677 curl.se: new home 3 éve
adddocsref.pl 4d2f800677 curl.se: new home 3 éve
altsvc.c ac0a88fd25 copyright: fix year ranges 3 éve
anyauthput.c 4d2f800677 curl.se: new home 3 éve
cacertinmem.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 éve
certinfo.c ac0a88fd25 copyright: fix year ranges 3 éve
chkspeed.c ac0a88fd25 copyright: fix year ranges 3 éve
cookie_interface.c ac0a88fd25 copyright: fix year ranges 3 éve
crawler.c 207a6cbb90 src: Remove C99 constructs to ensure C89 compliance 4 éve
curlgtk.c 0bc60d91de copyrights: fix copyright year range 4 éve
curlx.c 308c243db5 all: fix codespell errors 4 éve
debug.c ac0a88fd25 copyright: fix year ranges 3 éve
ephiperfifo.c 4d2f800677 curl.se: new home 3 éve
evhiperfifo.c ac0a88fd25 copyright: fix year ranges 3 éve
externalsocket.c ac0a88fd25 copyright: fix year ranges 3 éve
fileupload.c ac0a88fd25 copyright: fix year ranges 3 éve
fopen.c 0bc60d91de copyrights: fix copyright year range 4 éve
ftp-wildcard.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpget.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpgetinfo.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpgetresp.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpsget.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpupload.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpuploadfrommem.c ac0a88fd25 copyright: fix year ranges 3 éve
ftpuploadresume.c ac0a88fd25 copyright: fix year ranges 3 éve
getinfo.c ac0a88fd25 copyright: fix year ranges 3 éve
getinmemory.c ac0a88fd25 copyright: fix year ranges 3 éve
getredirect.c ac0a88fd25 copyright: fix year ranges 3 éve
ghiper.c ac0a88fd25 copyright: fix year ranges 3 éve
hiperfifo.c ac0a88fd25 copyright: fix year ranges 3 éve
href_extractor.c ac0a88fd25 copyright: fix year ranges 3 éve
htmltidy.c ac0a88fd25 copyright: fix year ranges 3 éve
htmltitle.cpp ac0a88fd25 copyright: fix year ranges 3 éve
http-post.c ac0a88fd25 copyright: fix year ranges 3 éve
http2-download.c 4d2f800677 curl.se: new home 3 éve
http2-pushinmemory.c ac0a88fd25 copyright: fix year ranges 3 éve
http2-serverpush.c ac0a88fd25 copyright: fix year ranges 3 éve
http2-upload.c 4d2f800677 curl.se: new home 3 éve
http3-present.c ac0a88fd25 copyright: fix year ranges 3 éve
http3.c ac0a88fd25 copyright: fix year ranges 3 éve
httpcustomheader.c ac0a88fd25 copyright: fix year ranges 3 éve
httpput-postfields.c 71ec4e7d76 httpput-postfields.c: new example doing PUT with POSTFIELDS 3 éve
httpput.c fa6bbbe167 examples/httpput: remove use of CURLOPT_PUT 3 éve
https.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-append.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-authzid.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-copy.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-create.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-delete.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-examine.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-fetch.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-list.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-lsub.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-multi.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-noop.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-search.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-ssl.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-store.c ac0a88fd25 copyright: fix year ranges 3 éve
imap-tls.c ac0a88fd25 copyright: fix year ranges 3 éve
makefile.dj 4d2f800677 curl.se: new home 3 éve
multi-app.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-debugcallback.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-double.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-event.c 4d2f800677 curl.se: new home 3 éve
multi-formadd.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-poll.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-post.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-single.c ac0a88fd25 copyright: fix year ranges 3 éve
multi-uv.c 4d2f800677 curl.se: new home 3 éve
multithread.c 4d2f800677 curl.se: new home 3 éve
opensslthreadlock.c ac0a88fd25 copyright: fix year ranges 3 éve
parseurl.c ac0a88fd25 copyright: fix year ranges 3 éve
persistent.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-authzid.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-dele.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-list.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-multi.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-noop.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-retr.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-ssl.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-stat.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-tls.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-top.c ac0a88fd25 copyright: fix year ranges 3 éve
pop3-uidl.c ac0a88fd25 copyright: fix year ranges 3 éve
post-callback.c ac0a88fd25 copyright: fix year ranges 3 éve
postinmemory.c ac0a88fd25 copyright: fix year ranges 3 éve
postit2-formadd.c ac0a88fd25 copyright: fix year ranges 3 éve
postit2.c ac0a88fd25 copyright: fix year ranges 3 éve
progressfunc.c ac0a88fd25 copyright: fix year ranges 3 éve
resolve.c ac0a88fd25 copyright: fix year ranges 3 éve
rtsp.c 687908c6e6 examples/rtsp.c: correct the copyright year 3 éve
sampleconv.c ac0a88fd25 copyright: fix year ranges 3 éve
sendrecv.c ac0a88fd25 copyright: fix year ranges 3 éve
sepheaders.c ac0a88fd25 copyright: fix year ranges 3 éve
sessioninfo.c 4d2f800677 curl.se: new home 3 éve
sftpget.c ac0a88fd25 copyright: fix year ranges 3 éve
sftpuploadresume.c ac0a88fd25 copyright: fix year ranges 3 éve
shared-connection-cache.c ac0a88fd25 copyright: fix year ranges 3 éve
simple.c ac0a88fd25 copyright: fix year ranges 3 éve
simplepost.c ac0a88fd25 copyright: fix year ranges 3 éve
simplessl.c ac0a88fd25 copyright: fix year ranges 3 éve
smooth-gtk-thread.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-authzid.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-expn.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-mail.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-mime.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-multi.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-ssl.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-tls.c ac0a88fd25 copyright: fix year ranges 3 éve
smtp-vrfy.c afddaa6dec examples: fix comment syntax 3 éve
sslbackend.c 4d2f800677 curl.se: new home 3 éve
synctime.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 éve
threaded-shared-conn.c ac0a88fd25 copyright: fix year ranges 3 éve
threaded-ssl.c ac0a88fd25 copyright: fix year ranges 3 éve
url2file.c ac0a88fd25 copyright: fix year ranges 3 éve
urlapi.c ac0a88fd25 copyright: fix year ranges 3 éve
usercertinmem.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 éve
version-check.pl 4d2f800677 curl.se: new home 3 éve
xmlstream.c ac0a88fd25 copyright: fix year ranges 3 éve

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 don't 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 doesn't 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.