Glenn Smith 01a719ee58 Update libcurl 3 years ago
..
.checksrc 01a719ee58 Update libcurl 3 years ago
10-at-a-time.c 01a719ee58 Update libcurl 3 years ago
Makefile.am 01a719ee58 Update libcurl 3 years ago
Makefile.example 01a719ee58 Update libcurl 3 years ago
Makefile.in 01a719ee58 Update libcurl 3 years ago
Makefile.inc 01a719ee58 Update libcurl 3 years ago
Makefile.m32 01a719ee58 Update libcurl 3 years ago
README.md 01a719ee58 Update libcurl 3 years ago
altsvc.c 01a719ee58 Update libcurl 3 years ago
anyauthput.c 01a719ee58 Update libcurl 3 years ago
cacertinmem.c 01a719ee58 Update libcurl 3 years ago
certinfo.c 01a719ee58 Update libcurl 3 years ago
chkspeed.c 01a719ee58 Update libcurl 3 years ago
cookie_interface.c 01a719ee58 Update libcurl 3 years ago
crawler.c 01a719ee58 Update libcurl 3 years ago
curlgtk.c 01a719ee58 Update libcurl 3 years ago
debug.c 01a719ee58 Update libcurl 3 years ago
ephiperfifo.c 01a719ee58 Update libcurl 3 years ago
evhiperfifo.c 01a719ee58 Update libcurl 3 years ago
externalsocket.c 01a719ee58 Update libcurl 3 years ago
fileupload.c 01a719ee58 Update libcurl 3 years ago
ftp-wildcard.c 01a719ee58 Update libcurl 3 years ago
ftpget.c 01a719ee58 Update libcurl 3 years ago
ftpgetinfo.c 01a719ee58 Update libcurl 3 years ago
ftpgetresp.c 01a719ee58 Update libcurl 3 years ago
ftpsget.c 01a719ee58 Update libcurl 3 years ago
ftpupload.c 01a719ee58 Update libcurl 3 years ago
ftpuploadfrommem.c 01a719ee58 Update libcurl 3 years ago
ftpuploadresume.c 01a719ee58 Update libcurl 3 years ago
getinfo.c 01a719ee58 Update libcurl 3 years ago
getinmemory.c 01a719ee58 Update libcurl 3 years ago
getredirect.c 01a719ee58 Update libcurl 3 years ago
getreferrer.c 01a719ee58 Update libcurl 3 years ago
ghiper.c 01a719ee58 Update libcurl 3 years ago
headerapi.c 01a719ee58 Update libcurl 3 years ago
hiperfifo.c 01a719ee58 Update libcurl 3 years ago
href_extractor.c 01a719ee58 Update libcurl 3 years ago
htmltidy.c 01a719ee58 Update libcurl 3 years ago
htmltitle.cpp 01a719ee58 Update libcurl 3 years ago
http-post.c 01a719ee58 Update libcurl 3 years ago
http2-download.c 01a719ee58 Update libcurl 3 years ago
http2-pushinmemory.c 01a719ee58 Update libcurl 3 years ago
http2-serverpush.c 01a719ee58 Update libcurl 3 years ago
http2-upload.c 01a719ee58 Update libcurl 3 years ago
http3-present.c 01a719ee58 Update libcurl 3 years ago
http3.c 01a719ee58 Update libcurl 3 years ago
httpcustomheader.c 01a719ee58 Update libcurl 3 years ago
httpput-postfields.c 01a719ee58 Update libcurl 3 years ago
httpput.c 01a719ee58 Update libcurl 3 years ago
https.c 01a719ee58 Update libcurl 3 years ago
imap-append.c 01a719ee58 Update libcurl 3 years ago
imap-authzid.c 01a719ee58 Update libcurl 3 years ago
imap-copy.c 01a719ee58 Update libcurl 3 years ago
imap-create.c 01a719ee58 Update libcurl 3 years ago
imap-delete.c 01a719ee58 Update libcurl 3 years ago
imap-examine.c 01a719ee58 Update libcurl 3 years ago
imap-fetch.c 01a719ee58 Update libcurl 3 years ago
imap-list.c 01a719ee58 Update libcurl 3 years ago
imap-lsub.c 01a719ee58 Update libcurl 3 years ago
imap-multi.c 01a719ee58 Update libcurl 3 years ago
imap-noop.c 01a719ee58 Update libcurl 3 years ago
imap-search.c 01a719ee58 Update libcurl 3 years ago
imap-ssl.c 01a719ee58 Update libcurl 3 years ago
imap-store.c 01a719ee58 Update libcurl 3 years ago
imap-tls.c 01a719ee58 Update libcurl 3 years ago
makefile.dj 01a719ee58 Update libcurl 3 years ago
multi-app.c 01a719ee58 Update libcurl 3 years ago
multi-debugcallback.c 01a719ee58 Update libcurl 3 years ago
multi-double.c 01a719ee58 Update libcurl 3 years ago
multi-event.c 01a719ee58 Update libcurl 3 years ago
multi-formadd.c 01a719ee58 Update libcurl 3 years ago
multi-legacy.c 01a719ee58 Update libcurl 3 years ago
multi-post.c 01a719ee58 Update libcurl 3 years ago
multi-single.c 01a719ee58 Update libcurl 3 years ago
multi-uv.c 01a719ee58 Update libcurl 3 years ago
multithread.c 01a719ee58 Update libcurl 3 years ago
opensslthreadlock.c 01a719ee58 Update libcurl 3 years ago
parseurl.c 01a719ee58 Update libcurl 3 years ago
persistent.c 01a719ee58 Update libcurl 3 years ago
pop3-authzid.c 01a719ee58 Update libcurl 3 years ago
pop3-dele.c 01a719ee58 Update libcurl 3 years ago
pop3-list.c 01a719ee58 Update libcurl 3 years ago
pop3-multi.c 01a719ee58 Update libcurl 3 years ago
pop3-noop.c 01a719ee58 Update libcurl 3 years ago
pop3-retr.c 01a719ee58 Update libcurl 3 years ago
pop3-ssl.c 01a719ee58 Update libcurl 3 years ago
pop3-stat.c 01a719ee58 Update libcurl 3 years ago
pop3-tls.c 01a719ee58 Update libcurl 3 years ago
pop3-top.c 01a719ee58 Update libcurl 3 years ago
pop3-uidl.c 01a719ee58 Update libcurl 3 years ago
post-callback.c 01a719ee58 Update libcurl 3 years ago
postinmemory.c 01a719ee58 Update libcurl 3 years ago
postit2-formadd.c 01a719ee58 Update libcurl 3 years ago
postit2.c 01a719ee58 Update libcurl 3 years ago
progressfunc.c 01a719ee58 Update libcurl 3 years ago
resolve.c 01a719ee58 Update libcurl 3 years ago
sendrecv.c 01a719ee58 Update libcurl 3 years ago
sepheaders.c 01a719ee58 Update libcurl 3 years ago
sessioninfo.c 01a719ee58 Update libcurl 3 years ago
sftpget.c 01a719ee58 Update libcurl 3 years ago
sftpuploadresume.c 01a719ee58 Update libcurl 3 years ago
shared-connection-cache.c 01a719ee58 Update libcurl 3 years ago
simple.c 01a719ee58 Update libcurl 3 years ago
simplepost.c 01a719ee58 Update libcurl 3 years ago
simplessl.c 01a719ee58 Update libcurl 3 years ago
smooth-gtk-thread.c 01a719ee58 Update libcurl 3 years ago
smtp-authzid.c 01a719ee58 Update libcurl 3 years ago
smtp-expn.c 01a719ee58 Update libcurl 3 years ago
smtp-mail.c 01a719ee58 Update libcurl 3 years ago
smtp-mime.c 01a719ee58 Update libcurl 3 years ago
smtp-multi.c 01a719ee58 Update libcurl 3 years ago
smtp-ssl.c 01a719ee58 Update libcurl 3 years ago
smtp-tls.c 01a719ee58 Update libcurl 3 years ago
smtp-vrfy.c 01a719ee58 Update libcurl 3 years ago
sslbackend.c 01a719ee58 Update libcurl 3 years ago
synctime.c 01a719ee58 Update libcurl 3 years ago
threaded-ssl.c 01a719ee58 Update libcurl 3 years ago
url2file.c 01a719ee58 Update libcurl 3 years ago
urlapi.c 01a719ee58 Update libcurl 3 years ago
usercertinmem.c 01a719ee58 Update libcurl 3 years ago
version-check.pl 01a719ee58 Update libcurl 3 years ago
xmlstream.c 01a719ee58 Update libcurl 3 years ago

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 do not 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 does not 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.