Daniel Stenberg 091cdf2795 10-at-a-time.c: fix too long line 5 năm trước cách đây
..
.gitignore 251cabfb4a examples: Update .gitignore 5 năm trước cách đây
10-at-a-time.c 091cdf2795 10-at-a-time.c: fix too long line 5 năm trước cách đây
Makefile.am dcd6f81025 snprintf: renamed and we now only use msnprintf() 5 năm trước cách đây
Makefile.example 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
Makefile.inc 5c4fe0d826 setopt: add CURLOPT_CURLU 5 năm trước cách đây
Makefile.m32 c42849bb48 examples/Makefile.m32: sync with core [ci skip] 6 năm trước cách đây
Makefile.netware 302d125b42 axtls: removed 5 năm trước cách đây
README 99d17a5e2b examples/README: cut out the incomplete list 8 năm trước cách đây
adddocsref.pl d4e40f0690 scripts: allow all perl scripts to be run directly 6 năm trước cách đây
anyauthput.c 6a7feb103a anyauthput: fix compiler warning on 64-bit Windows 6 năm trước cách đây
asiohiper.cpp 00c3254595 example/asiohiper: insert warning comment about its status 6 năm trước cách đây
cacertinmem.c 0f6c6efd81 cacertinmem.c: use multiple certificates for loading CA-chain 5 năm trước cách đây
certinfo.c efc7c1d86f typecheck-gcc.h: check CURLINFO_CERTINFO 7 năm trước cách đây
chkspeed.c ce2140a8c1 getinfo: add microsecond precise timers for various intervals 6 năm trước cách đây
cookie_interface.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
crawler.c db239c07af examples/crawler: Fix the Accept-Encoding setting 5 năm trước cách đây
curlgtk.c b801b453af whitespace fixes 6 năm trước cách đây
curlx.c 23524bf85b examples: Fix memory leaks from realloc errors 6 năm trước cách đây
debug.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
ephiperfifo.c a977d93805 examples: various fixes in ephiperfifo.c 5 năm trước cách đây
evhiperfifo.c 47e540df8f examples: remove recursive calls to curl_multi_socket_action 5 năm trước cách đây
externalsocket.c c5de7f50f7 examples/externalsocket.c: s/closesocket/closecb 7 năm trước cách đây
fileupload.c ce2140a8c1 getinfo: add microsecond precise timers for various intervals 6 năm trước cách đây
fopen.c 94400f32e9 all: Refactor malloc+memset to use calloc 6 năm trước cách đây
ftp-wildcard.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
ftpget.c b4beb3b115 examples: remove superfluous null-pointer checks 5 năm trước cách đây
ftpgetinfo.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
ftpgetresp.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
ftpsget.c b4beb3b115 examples: remove superfluous null-pointer checks 5 năm trước cách đây
ftpupload.c 7e35eb7729 spelling fixes 6 năm trước cách đây
ftpuploadfrommem.c 6cba8dacea examples: fixed too long line and too long string warnings 7 năm trước cách đây
ftpuploadresume.c d18941ea17 examples/ftpuploadresume: checksrc compliance 7 năm trước cách đây
getinfo.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
getinmemory.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
getredirect.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
ghiper.c 47e540df8f examples: remove recursive calls to curl_multi_socket_action 5 năm trước cách đây
hiperfifo.c 47e540df8f examples: remove recursive calls to curl_multi_socket_action 5 năm trước cách đây
href_extractor.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
htmltidy.c 063f9a4c8b example/htmltidy: fix include paths of tidy libraries 6 năm trước cách đây
htmltitle.cpp a41e8592d6 examples: make the C++ examples follow our code style too 7 năm trước cách đây
http-post.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
http2-download.c b2e5af4aec examples/http2-download: cleaned up 5 năm trước cách đây
http2-pushinmemory.c ef38059f7e examples/http2-pushinmemory: receive HTTP/2 pushed files in memory 6 năm trước cách đây
http2-serverpush.c af143ef45e examples/http2-serverpush: add some sensible error checks 5 năm trước cách đây
http2-upload.c 25233d9478 examples/http2-upload: cleaned up 5 năm trước cách đây
httpcustomheader.c 9bd704c02a examples/httpcustomheader: Value stored to 'res' is never read 5 năm trước cách đây
httpput.c 6b84438d9a code style: use spaces around equals signs 7 năm trước cách đây
https.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
imap-append.c 45c1c54c42 examples/imap-append: Set size of data to be uploaded 8 năm trước cách đây
imap-copy.c f7df67cff0 spelling fixes 7 năm trước cách đây
imap-create.c f7df67cff0 spelling fixes 7 năm trước cách đây
imap-delete.c f7df67cff0 spelling fixes 7 năm trước cách đây
imap-examine.c f7df67cff0 spelling fixes 7 năm trước cách đây
imap-fetch.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
imap-list.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
imap-lsub.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
imap-multi.c e5743f08e7 code style: use spaces around pluses 7 năm trước cách đây
imap-noop.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
imap-search.c f7df67cff0 spelling fixes 7 năm trước cách đây
imap-ssl.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
imap-store.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
imap-tls.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
makefile.dj b801b453af whitespace fixes 6 năm trước cách đây
multi-app.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multi-debugcallback.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multi-double.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multi-formadd.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multi-post.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multi-single.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multi-uv.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
multithread.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
opensslthreadlock.c 6b84438d9a code style: use spaces around equals signs 7 năm trước cách đây
parseurl.c 5c41f88c05 examples/parseurl.c: show off the URL API a bit 6 năm trước cách đây
persistent.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
pop3-dele.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
pop3-list.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
pop3-multi.c e5743f08e7 code style: use spaces around pluses 7 năm trước cách đây
pop3-noop.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
pop3-retr.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
pop3-ssl.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
pop3-stat.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
pop3-tls.c 3a6563d668 examples: adhere to curl code style 8 năm trước cách đây
pop3-top.c f7df67cff0 spelling fixes 7 năm trước cách đây
pop3-uidl.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
post-callback.c 5d916944ae examples/post-callback: use long for CURLOPT_POSTFIELDSIZE 7 năm trước cách đây
postinmemory.c 52d98194b5 examples/postinmemory: Potential leak of memory pointed to by 'chunk.memory' 5 năm trước cách đây
postit2-formadd.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
postit2.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
progressfunc.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
resolve.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
rtsp.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
sampleconv.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
sendrecv.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
sepheaders.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
sessioninfo.c 13505dcb55 examples: Fix format specifiers 6 năm trước cách đây
sftpget.c b4beb3b115 examples: remove superfluous null-pointer checks 5 năm trước cách đây
sftpuploadresume.c 5341c65667 examples/sftpuploadresume: Value stored to 'result' is never read 5 năm trước cách đây
shared-connection-cache.c 236402fc2d cleanup: misc typos in strings and comments 6 năm trước cách đây
simple.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
simplepost.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
simplessl.c 6b84438d9a code style: use spaces around equals signs 7 năm trước cách đây
smooth-gtk-thread.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
smtp-expn.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
smtp-mail.c 7ef0c2d861 examples/smtp-mail.c: use separate defines for options and mail 6 năm trước cách đây
smtp-mime.c 4bd91bc474 spelling fixes 6 năm trước cách đây
smtp-multi.c e5743f08e7 code style: use spaces around pluses 7 năm trước cách đây
smtp-ssl.c 25fc694a41 examples/mime: minor example code fixes 7 năm trước cách đây
smtp-tls.c 25fc694a41 examples/mime: minor example code fixes 7 năm trước cách đây
smtp-vrfy.c 4af40b3646 URLs: change all http:// URLs to https:// 8 năm trước cách đây
sslbackend.c 60776a0515 curl-compilers: enable -Wbad-function-cast on GCC 6 năm trước cách đây
synctime.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây
threaded-shared-conn.c 4bd91bc474 spelling fixes 6 năm trước cách đây
threaded-ssl.c 6b84438d9a code style: use spaces around equals signs 7 năm trước cách đây
url2file.c da07dbb869 examples/url2file.c: add missing curl_global_cleanup() call 6 năm trước cách đây
urlapi.c 5c4fe0d826 setopt: add CURLOPT_CURLU 5 năm trước cách đây
usercertinmem.c 6b84438d9a code style: use spaces around equals signs 7 năm trước cách đây
version-check.pl b801b453af whitespace fixes 6 năm trước cách đây
xmlstream.c efc696a2e0 docs/examples: URL updates 6 năm trước cách đây

README

_ _ ____ _
___| | | | _ \| |
/ __| | | | |_) | |
| (__| |_| | _ <| |___
\___|\___/|_| \_\_____|

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 web site.

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.haxx.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 web site 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.