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