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

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.