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

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.