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