Viktor Szakats 3b6d18bbf6 spelling: fix codespell 2.2.6 typos 1 år sedan
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 4 år sedan
.gitignore 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
10-at-a-time.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
Makefile.am 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
Makefile.example 5b060a4108 docs: rewrite to present tense 1 år sedan
Makefile.inc 5b060a4108 docs: rewrite to present tense 1 år sedan
Makefile.mk 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
README.md 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
adddocsref.pl 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
altsvc.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
anyauthput.c 5b060a4108 docs: rewrite to present tense 1 år sedan
cacertinmem.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
certinfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
chkspeed.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
connect-to.c 959e613e7c misc: fix various typos 1 år sedan
cookie_interface.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
crawler.c aef74ae416 example/crawler: make it use a few more options 1 år sedan
debug.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
default-scheme.c c6ec264d1f example/default-scheme: set the default scheme for schemeless URLs 1 år sedan
ephiperfifo.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
evhiperfifo.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
externalsocket.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
fileupload.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ftp-wildcard.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ftpget.c 5b060a4108 docs: rewrite to present tense 1 år sedan
ftpgetinfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ftpgetresp.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ftpsget.c 5b060a4108 docs: rewrite to present tense 1 år sedan
ftpupload.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ftpuploadfrommem.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ftpuploadresume.c 67e9e90f96 examples/ftpuploadresume.c: add use of CURLOPT_ACCEPTTIMEOUT_MS 1 år sedan
getinfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
getinmemory.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
getredirect.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
getreferrer.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
ghiper.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
headerapi.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
hiperfifo.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
href_extractor.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
hsts-preload.c e6ad624996 example/hsts-preload: show one way to HSTS preload 1 år sedan
htmltidy.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
htmltitle.cpp 127eb0d83a misc: fix spelling mistakes 1 år sedan
http-options.c 4e6a07e177 examples/http-options: show how to send "OPTIONS *" 1 år sedan
http-post.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
http2-download.c ad8a8e048e example/http2-download: set CURLOPT_BUFFERSIZE 1 år sedan
http2-pushinmemory.c 5b060a4108 docs: rewrite to present tense 1 år sedan
http2-serverpush.c 5b060a4108 docs: rewrite to present tense 1 år sedan
http2-upload.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
http3-present.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
http3.c 49a9f13c39 examples/http3.c: use CURL_HTTP_VERSION_3 1 år sedan
httpcustomheader.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
httpput-postfields.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
httpput.c 127eb0d83a misc: fix spelling mistakes 1 år sedan
https.c 555bacd6d5 examples/https.c: use CURLOPT_CA_CACHE_TIMEOUT 1 år sedan
imap-append.c 22c92a6d51 docs: use a space after RFC when spelling out RFC numbers 1 år sedan
imap-authzid.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-copy.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-create.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-delete.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-examine.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-fetch.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-list.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-lsub.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
imap-multi.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-noop.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-search.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-ssl.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
imap-store.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
imap-tls.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
ipv6.c ce3dce9015 tidy-up: mostly whitespace nits 1 år sedan
maxconnects.c 97394caa20 example/maxconnects: set maxconnect example 1 år sedan
multi-app.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multi-debugcallback.c b5351c71c1 examples/multi-debugcallback.c: avoid the bool typedef 1 år sedan
multi-double.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multi-event.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multi-formadd.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multi-legacy.c 6f93d5f604 lib: fix conversion warnings with gcc on macOS 1 år sedan
multi-post.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multi-single.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multi-uv.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
multithread.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
parseurl.c f198d33e8d checksrc: disallow spaces before labels 1 år sedan
persistent.c 5b060a4108 docs: rewrite to present tense 1 år sedan
pop3-authzid.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-dele.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-list.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-multi.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-noop.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-retr.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-ssl.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
pop3-stat.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-tls.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
pop3-top.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
pop3-uidl.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
post-callback.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
postinmemory.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
postit2-formadd.c 22c92a6d51 docs: use a space after RFC when spelling out RFC numbers 1 år sedan
postit2.c 22c92a6d51 docs: use a space after RFC when spelling out RFC numbers 1 år sedan
progressfunc.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
protofeats.c c9cff9262f docs/examples/protofeats.c: Outputs all protocols and features 1 år sedan
resolve.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
sendrecv.c 6f93d5f604 lib: fix conversion warnings with gcc on macOS 1 år sedan
sepheaders.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
sessioninfo.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
sftpget.c 5b060a4108 docs: rewrite to present tense 1 år sedan
sftpuploadresume.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
shared-connection-cache.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
simple.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
simplepost.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
simplessl.c 3b6d18bbf6 spelling: fix codespell 2.2.6 typos 1 år sedan
smooth-gtk-thread.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
smtp-authzid.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
smtp-expn.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
smtp-mail.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
smtp-mime.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
smtp-multi.c 22c92a6d51 docs: use a space after RFC when spelling out RFC numbers 1 år sedan
smtp-ssl.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
smtp-tls.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
smtp-vrfy.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
sslbackend.c c1ab33ed79 docs: use CURLSSLBACKEND_NONE 1 år sedan
synctime.c 945db0d958 docs: remove use of the word 'very' 1 år sedan
threaded-ssl.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
unixsocket.c 4894ca6813 examples/unixsocket.c: example using CURLOPT_UNIX_SOCKET_PATH 1 år sedan
url2file.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
urlapi.c 741b6853b9 examples: make use of CURLOPT_(REDIR_|)PROTOCOLS_STR 1 år sedan
usercertinmem.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
version-check.pl 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan
websocket-cb.c 78886afb50 ws: make the curl_ws_meta() return pointer a const 1 år sedan
websocket.c a86fcb284f ws: fix spelling mistakes in examples and tests 1 år sedan
xmlstream.c 2bc1d775f5 copyright: update all copyright lines and remove year ranges 1 år sedan

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.