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