Daniel Stenberg 2610142139 lib: remove support for CURL_DOES_CONVERSIONS 2 年之前
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 4 年之前
.gitignore 013cb2ff7d docs/examples: add missing binaries to gitignore 3 年之前
10-at-a-time.c ac0a88fd25 copyright: fix year ranges 4 年之前
Makefile.am 3b16575ae9 netware: remove support 2 年之前
Makefile.example 4d2f800677 curl.se: new home 4 年之前
Makefile.inc 2610142139 lib: remove support for CURL_DOES_CONVERSIONS 2 年之前
Makefile.m32 8c0336cf5d Makefile.m32: rename -winssl option to -schannel and tidy up 3 年之前
README.md a28464ae77 docs: reduce/avoid English contractions 3 年之前
adddocsref.pl 4d2f800677 curl.se: new home 4 年之前
altsvc.c ac0a88fd25 copyright: fix year ranges 4 年之前
anyauthput.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
cacertinmem.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 年之前
certinfo.c ac0a88fd25 copyright: fix year ranges 4 年之前
chkspeed.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
cookie_interface.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
crawler.c 207a6cbb90 src: Remove C99 constructs to ensure C89 compliance 4 年之前
curlgtk.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
curlx.c 82d334001f copyright: update copyright year ranges to 2021 3 年之前
debug.c ac0a88fd25 copyright: fix year ranges 4 年之前
ephiperfifo.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
evhiperfifo.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
externalsocket.c 7a0c160473 externalsocket: use WinSock 2.2 3 年之前
fileupload.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
fopen.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
ftp-wildcard.c ac0a88fd25 copyright: fix year ranges 4 年之前
ftpget.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
ftpgetinfo.c ac0a88fd25 copyright: fix year ranges 4 年之前
ftpgetresp.c ac0a88fd25 copyright: fix year ranges 4 年之前
ftpsget.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
ftpupload.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
ftpuploadfrommem.c f2ed79d8ee docs/examples: adjust prototypes for CURLOPT_READFUNCTION 3 年之前
ftpuploadresume.c f2ed79d8ee docs/examples: adjust prototypes for CURLOPT_READFUNCTION 3 年之前
getinfo.c ac0a88fd25 copyright: fix year ranges 4 年之前
getinmemory.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
getredirect.c ac0a88fd25 copyright: fix year ranges 4 年之前
getreferrer.c f65d7889b5 http: add new files missed from referrer commit 3 年之前
ghiper.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
hiperfifo.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
href_extractor.c ac0a88fd25 copyright: fix year ranges 4 年之前
htmltidy.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
htmltitle.cpp ac0a88fd25 copyright: fix year ranges 4 年之前
http-post.c ac0a88fd25 copyright: fix year ranges 4 年之前
http2-download.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
http2-pushinmemory.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
http2-serverpush.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
http2-upload.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
http3-present.c ac0a88fd25 copyright: fix year ranges 4 年之前
http3.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
httpcustomheader.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
httpput-postfields.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
httpput.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
https.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
imap-append.c 7a92f865b4 misc: s/e-mail/email 2 年之前
imap-authzid.c d8f6e5dc8e misc: update copyright year range 2 年之前
imap-copy.c d8f6e5dc8e misc: update copyright year range 2 年之前
imap-create.c ac0a88fd25 copyright: fix year ranges 4 年之前
imap-delete.c ac0a88fd25 copyright: fix year ranges 4 年之前
imap-examine.c ac0a88fd25 copyright: fix year ranges 4 年之前
imap-fetch.c 7a92f865b4 misc: s/e-mail/email 2 年之前
imap-list.c ac0a88fd25 copyright: fix year ranges 4 年之前
imap-lsub.c ac0a88fd25 copyright: fix year ranges 4 年之前
imap-multi.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples 3 年之前
imap-noop.c ac0a88fd25 copyright: fix year ranges 4 年之前
imap-search.c 7a92f865b4 misc: s/e-mail/email 2 年之前
imap-ssl.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
imap-store.c 7a92f865b4 misc: s/e-mail/email 2 年之前
imap-tls.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
makefile.dj 4d2f800677 curl.se: new home 4 年之前
multi-app.c 60080202bb examples/multi-app.c: call curl_multi_remove_handle as well 2 年之前
multi-debugcallback.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
multi-double.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples 3 年之前
multi-event.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
multi-formadd.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples 3 年之前
multi-legacy.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
multi-post.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples 3 年之前
multi-single.c e1b04106f8 examples/multi-single.c: remove WAITMS() 2 年之前
multi-uv.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
multithread.c d4d53d99b1 mailing lists: move from cool.haxx.se to lists.haxx.se 3 年之前
opensslthreadlock.c ac0a88fd25 copyright: fix year ranges 4 年之前
parseurl.c ac0a88fd25 copyright: fix year ranges 4 年之前
persistent.c ac0a88fd25 copyright: fix year ranges 4 年之前
pop3-authzid.c d8f6e5dc8e misc: update copyright year range 2 年之前
pop3-dele.c 7a92f865b4 misc: s/e-mail/email 2 年之前
pop3-list.c ac0a88fd25 copyright: fix year ranges 4 年之前
pop3-multi.c ae8e11ed5f docs/examples: use curl_multi_poll() in multi examples 3 年之前
pop3-noop.c ac0a88fd25 copyright: fix year ranges 4 年之前
pop3-retr.c 7a92f865b4 misc: s/e-mail/email 2 年之前
pop3-ssl.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
pop3-stat.c ac0a88fd25 copyright: fix year ranges 4 年之前
pop3-tls.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
pop3-top.c 7a92f865b4 misc: s/e-mail/email 2 年之前
pop3-uidl.c ac0a88fd25 copyright: fix year ranges 4 年之前
post-callback.c f2ed79d8ee docs/examples: adjust prototypes for CURLOPT_READFUNCTION 3 年之前
postinmemory.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
postit2-formadd.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
postit2.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
progressfunc.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
resolve.c ac0a88fd25 copyright: fix year ranges 4 年之前
rtsp.c 21248e052d checksrc: detect more kinds of NULL comparisons we avoid 2 年之前
sendrecv.c 77311f420a docs/examples: workaround broken -Wno-pedantic-ms-format 2 年之前
sepheaders.c ac0a88fd25 copyright: fix year ranges 4 年之前
sessioninfo.c 4d2f800677 curl.se: new home 4 年之前
sftpget.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
sftpuploadresume.c d8f6e5dc8e misc: update copyright year range 2 年之前
shared-connection-cache.c ac0a88fd25 copyright: fix year ranges 4 年之前
simple.c ac0a88fd25 copyright: fix year ranges 4 年之前
simplepost.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
simplessl.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
smooth-gtk-thread.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
smtp-authzid.c 7a92f865b4 misc: s/e-mail/email 2 年之前
smtp-expn.c 7a92f865b4 misc: s/e-mail/email 2 年之前
smtp-mail.c 7a92f865b4 misc: s/e-mail/email 2 年之前
smtp-mime.c 7a92f865b4 misc: s/e-mail/email 2 年之前
smtp-multi.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
smtp-ssl.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
smtp-tls.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
smtp-vrfy.c 7a92f865b4 misc: s/e-mail/email 2 年之前
sslbackend.c 4d2f800677 curl.se: new home 4 年之前
synctime.c 21248e052d checksrc: detect more kinds of NULL comparisons we avoid 2 年之前
threaded-ssl.c a28464ae77 docs: reduce/avoid English contractions 3 年之前
url2file.c ac0a88fd25 copyright: fix year ranges 4 年之前
urlapi.c 3363eeb262 urlapi: add curl_url_strerror() 3 年之前
usercertinmem.c 063d3f3b96 tidy-up: make conditional checks more consistent 3 年之前
version-check.pl 4d2f800677 curl.se: new home 4 年之前
xmlstream.c a28464ae77 docs: reduce/avoid English contractions 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 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.