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

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.