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