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

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.