Viktor Szakats 5cefda1b93 build: tidy up deprecation suppression, enable warnings for clang 2 tuần trước cách đây
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 4 năm trước cách đây
.gitignore 6e2d3db99f examples: add missing binaries to .gitignore 3 tháng trước cách đây
10-at-a-time.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
CMakeLists.txt 45202cbba4 cmake: separate target for examples, optimize CI, fix fallouts 4 ngày trước cách đây
Makefile.am 5cefda1b93 build: tidy up deprecation suppression, enable warnings for clang 4 ngày trước cách đây
Makefile.example 6343034dd1 tidy-up: adjust casing of project names 2 tháng trước cách đây
Makefile.inc 5d75bcd2ea examples/range.c: add 8 tháng trước cách đây
Makefile.mk ba8752e556 Makefile.mk: drop Windows support 9 tháng trước cách đây
README.md 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
adddocsref.pl 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
address-scope.c 5b9955e0bd examples: fix/silence `-Wsign-conversion` 4 tháng trước cách đây
altsvc.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
anyauthput.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
cacertinmem.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
certinfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
chkspeed.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
connect-to.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
cookie_interface.c 45202cbba4 cmake: separate target for examples, optimize CI, fix fallouts 4 ngày trước cách đây
crawler.c aef74ae416 example/crawler: make it use a few more options 1 năm trước cách đây
debug.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
default-scheme.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
ephiperfifo.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
evhiperfifo.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
externalsocket.c d4b8589055 examples: fix compiling with MSVC 4 tháng trước cách đây
fileupload.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
ftp-wildcard.c 5b9955e0bd examples: fix/silence `-Wsign-conversion` 4 tháng trước cách đây
ftpget.c 95a882d268 build: fix `-Wconversion`/`-Wsign-conversion` warnings 9 tháng trước cách đây
ftpgetinfo.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
ftpgetresp.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
ftpsget.c 95a882d268 build: fix `-Wconversion`/`-Wsign-conversion` warnings 9 tháng trước cách đây
ftpupload.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
ftpuploadfrommem.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
ftpuploadresume.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
getinfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
getinmemory.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
getredirect.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
getreferrer.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
ghiper.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
headerapi.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
hiperfifo.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
href_extractor.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
hsts-preload.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
htmltidy.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
htmltitle.cpp 127eb0d83a misc: fix spelling mistakes 1 năm trước cách đây
http-options.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
http-post.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
http2-download.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
http2-pushinmemory.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
http2-serverpush.c 45202cbba4 cmake: separate target for examples, optimize CI, fix fallouts 4 ngày trước cách đây
http2-upload.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
http3-present.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
http3.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
httpcustomheader.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
httpput-postfields.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
httpput.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
https.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-append.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-authzid.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-copy.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-create.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
imap-delete.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
imap-examine.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
imap-fetch.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-list.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-lsub.c 945db0d958 docs: remove use of the word 'very' 1 năm trước cách đây
imap-multi.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-noop.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
imap-search.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
imap-ssl.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
imap-store.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
imap-tls.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
interface.c 22130826b7 docs/examples/interface.c: show CURLOPT_INTERFACE use 11 tháng trước cách đây
ipv6.c dd09f88f13 examples/ipv6.c: new example showing IPv6-only internet transfer 8 tháng trước cách đây
keepalive.c b77d627d24 tcpkeepalive: add CURLOPT_TCP_KEEPCNT and --keepalive-cnt 3 tháng trước cách đây
localport.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
maxconnects.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
multi-app.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
multi-debugcallback.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
multi-double.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
multi-event.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
multi-formadd.c 5cefda1b93 build: tidy up deprecation suppression, enable warnings for clang 4 ngày trước cách đây
multi-legacy.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
multi-post.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
multi-single.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
multi-uv.c b446802feb example/multi-uv: remove the use of globals 1 tháng trước cách đây
multithread.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
netrc.c 1404bcdeae examples/netrc.c: add 8 tháng trước cách đây
parseurl.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
persistent.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
pop3-authzid.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
pop3-dele.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
pop3-list.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
pop3-multi.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
pop3-noop.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
pop3-retr.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
pop3-ssl.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
pop3-stat.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
pop3-tls.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
pop3-top.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
pop3-uidl.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
post-callback.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
postinmemory.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
postit2-formadd.c 5cefda1b93 build: tidy up deprecation suppression, enable warnings for clang 4 ngày trước cách đây
postit2.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
progressfunc.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
protofeats.c c9cff9262f docs/examples/protofeats.c: Outputs all protocols and features 1 năm trước cách đây
range.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
resolve.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
rtsp-options.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
sendrecv.c 45202cbba4 cmake: separate target for examples, optimize CI, fix fallouts 4 ngày trước cách đây
sepheaders.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
sessioninfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
sftpget.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
sftpuploadresume.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
shared-connection-cache.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
simple.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
simplepost.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
simplessl.c 45202cbba4 cmake: separate target for examples, optimize CI, fix fallouts 4 ngày trước cách đây
smooth-gtk-thread.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-authzid.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-expn.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-mail.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-mime.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-multi.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-ssl.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-tls.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
smtp-vrfy.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
sslbackend.c c1ab33ed79 docs: use CURLSSLBACKEND_NONE 1 năm trước cách đây
synctime.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
threaded-ssl.c fbf5d507ce lib/src: white space edits to comply better with code style 5 ngày trước cách đây
unixsocket.c f81f351b9a tidy-up: OS names 1 tháng trước cách đây
url2file.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây
urlapi.c 741b6853b9 examples: make use of CURLOPT_(REDIR_|)PROTOCOLS_STR 1 năm trước cách đây
usercertinmem.c 6343034dd1 tidy-up: adjust casing of project names 2 tháng trước cách đây
version-check.pl 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 năm trước cách đây
websocket-cb.c f540e43b9d examples: use present tense in comments 7 tháng trước cách đây
websocket.c d4b8589055 examples: fix compiling with MSVC 4 tháng trước cách đây
xmlstream.c 53b4dfe405 examples: delete unused includes 4 tháng trước cách đây

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.