Patrick Monnerat c3e634d066 examples/chkspeed: improve portability 2 年之前
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 4 年之前
.gitignore ad9bc5976d copyright: make repository REUSE compliant 2 年之前
10-at-a-time.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
Makefile.am ad9bc5976d copyright: make repository REUSE compliant 2 年之前
Makefile.example ad9bc5976d copyright: make repository REUSE compliant 2 年之前
Makefile.inc 5357686fdf examples/curlx.c: remove 2 年之前
Makefile.m32 5fd7cd7302 Makefile.m32: allow -nghttp3/-ngtcp2 without -ssl [ci skip] 2 年之前
README.md fd1ce3d4b0 docs: spellfixes 2 年之前
adddocsref.pl ad9bc5976d copyright: make repository REUSE compliant 2 年之前
altsvc.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
anyauthput.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
cacertinmem.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
certinfo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
chkspeed.c c3e634d066 examples/chkspeed: improve portability 2 年之前
cookie_interface.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
crawler.c 07a9b89fed examples/crawler.c: use the curl license 2 年之前
curlgtk.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
debug.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ephiperfifo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
evhiperfifo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
externalsocket.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
fileupload.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftp-wildcard.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpget.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpgetinfo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpgetresp.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpsget.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpupload.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpuploadfrommem.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ftpuploadresume.c be43dd600a CURLOPT_SERVER_RESPONSE_TIMEOUT: the new name 2 年之前
getinfo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
getinmemory.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
getredirect.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
getreferrer.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
ghiper.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
headerapi.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
hiperfifo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
href_extractor.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
htmltidy.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
htmltitle.cpp ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http-post.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http2-download.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http2-pushinmemory.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http2-serverpush.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http2-upload.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http3-present.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
http3.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
httpcustomheader.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
httpput-postfields.c 9eec75452c httpput-postfields.c: shorten string for C89 compliance 2 年之前
httpput.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
https.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-append.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-authzid.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-copy.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-create.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-delete.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-examine.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-fetch.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-list.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-lsub.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-multi.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-noop.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-search.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-ssl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-store.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
imap-tls.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
makefile.dj ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-app.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-debugcallback.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-double.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-event.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-formadd.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-legacy.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-post.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-single.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multi-uv.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
multithread.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
opensslthreadlock.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
parseurl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
persistent.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-authzid.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-dele.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-list.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-multi.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-noop.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-retr.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-ssl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-stat.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-tls.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-top.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
pop3-uidl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
post-callback.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
postinmemory.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
postit2-formadd.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
postit2.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
progressfunc.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
resolve.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
sendrecv.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
sepheaders.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
sessioninfo.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
sftpget.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
sftpuploadresume.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
shared-connection-cache.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
simple.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
simplepost.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
simplessl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smooth-gtk-thread.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-authzid.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-expn.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-mail.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-mime.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-multi.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-ssl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-tls.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
smtp-vrfy.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
sslbackend.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
synctime.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
threaded-ssl.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
url2file.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
urlapi.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
usercertinmem.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前
version-check.pl ad9bc5976d copyright: make repository REUSE compliant 2 年之前
xmlstream.c ad9bc5976d copyright: make repository REUSE compliant 2 年之前

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.