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