h1-mod/deps/curl/docs/examples
2024-03-07 00:54:32 -05:00
..
.checksrc Added dependencies locally 2024-03-07 00:54:32 -05:00
.gitignore Added dependencies locally 2024-03-07 00:54:32 -05:00
10-at-a-time.c Added dependencies locally 2024-03-07 00:54:32 -05:00
adddocsref.pl Added dependencies locally 2024-03-07 00:54:32 -05:00
altsvc.c Added dependencies locally 2024-03-07 00:54:32 -05:00
anyauthput.c Added dependencies locally 2024-03-07 00:54:32 -05:00
cacertinmem.c Added dependencies locally 2024-03-07 00:54:32 -05:00
certinfo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
chkspeed.c Added dependencies locally 2024-03-07 00:54:32 -05:00
connect-to.c Added dependencies locally 2024-03-07 00:54:32 -05:00
cookie_interface.c Added dependencies locally 2024-03-07 00:54:32 -05:00
crawler.c Added dependencies locally 2024-03-07 00:54:32 -05:00
debug.c Added dependencies locally 2024-03-07 00:54:32 -05:00
default-scheme.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ephiperfifo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
evhiperfifo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
externalsocket.c Added dependencies locally 2024-03-07 00:54:32 -05:00
fileupload.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftp-wildcard.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpget.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpgetinfo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpgetresp.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpsget.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpupload.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpuploadfrommem.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ftpuploadresume.c Added dependencies locally 2024-03-07 00:54:32 -05:00
getinfo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
getinmemory.c Added dependencies locally 2024-03-07 00:54:32 -05:00
getredirect.c Added dependencies locally 2024-03-07 00:54:32 -05:00
getreferrer.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ghiper.c Added dependencies locally 2024-03-07 00:54:32 -05:00
headerapi.c Added dependencies locally 2024-03-07 00:54:32 -05:00
hiperfifo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
href_extractor.c Added dependencies locally 2024-03-07 00:54:32 -05:00
hsts-preload.c Added dependencies locally 2024-03-07 00:54:32 -05:00
htmltidy.c Added dependencies locally 2024-03-07 00:54:32 -05:00
htmltitle.cpp Added dependencies locally 2024-03-07 00:54:32 -05:00
http2-download.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http2-pushinmemory.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http2-serverpush.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http2-upload.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http3-present.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http3.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http-options.c Added dependencies locally 2024-03-07 00:54:32 -05:00
http-post.c Added dependencies locally 2024-03-07 00:54:32 -05:00
httpcustomheader.c Added dependencies locally 2024-03-07 00:54:32 -05:00
httpput-postfields.c Added dependencies locally 2024-03-07 00:54:32 -05:00
httpput.c Added dependencies locally 2024-03-07 00:54:32 -05:00
https.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-append.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-authzid.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-copy.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-create.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-delete.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-examine.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-fetch.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-list.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-lsub.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-multi.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-noop.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-search.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-ssl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-store.c Added dependencies locally 2024-03-07 00:54:32 -05:00
imap-tls.c Added dependencies locally 2024-03-07 00:54:32 -05:00
interface.c Added dependencies locally 2024-03-07 00:54:32 -05:00
ipv6.c Added dependencies locally 2024-03-07 00:54:32 -05:00
keepalive.c Added dependencies locally 2024-03-07 00:54:32 -05:00
localport.c Added dependencies locally 2024-03-07 00:54:32 -05:00
Makefile.am Added dependencies locally 2024-03-07 00:54:32 -05:00
Makefile.example Added dependencies locally 2024-03-07 00:54:32 -05:00
Makefile.inc Added dependencies locally 2024-03-07 00:54:32 -05:00
Makefile.mk Added dependencies locally 2024-03-07 00:54:32 -05:00
maxconnects.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-app.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-debugcallback.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-double.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-event.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-formadd.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-legacy.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-post.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-single.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multi-uv.c Added dependencies locally 2024-03-07 00:54:32 -05:00
multithread.c Added dependencies locally 2024-03-07 00:54:32 -05:00
parseurl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
persistent.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-authzid.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-dele.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-list.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-multi.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-noop.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-retr.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-ssl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-stat.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-tls.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-top.c Added dependencies locally 2024-03-07 00:54:32 -05:00
pop3-uidl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
post-callback.c Added dependencies locally 2024-03-07 00:54:32 -05:00
postinmemory.c Added dependencies locally 2024-03-07 00:54:32 -05:00
postit2-formadd.c Added dependencies locally 2024-03-07 00:54:32 -05:00
postit2.c Added dependencies locally 2024-03-07 00:54:32 -05:00
progressfunc.c Added dependencies locally 2024-03-07 00:54:32 -05:00
protofeats.c Added dependencies locally 2024-03-07 00:54:32 -05:00
README.md Added dependencies locally 2024-03-07 00:54:32 -05:00
resolve.c Added dependencies locally 2024-03-07 00:54:32 -05:00
rtsp-options.c Added dependencies locally 2024-03-07 00:54:32 -05:00
sendrecv.c Added dependencies locally 2024-03-07 00:54:32 -05:00
sepheaders.c Added dependencies locally 2024-03-07 00:54:32 -05:00
sessioninfo.c Added dependencies locally 2024-03-07 00:54:32 -05:00
sftpget.c Added dependencies locally 2024-03-07 00:54:32 -05:00
sftpuploadresume.c Added dependencies locally 2024-03-07 00:54:32 -05:00
shared-connection-cache.c Added dependencies locally 2024-03-07 00:54:32 -05:00
simple.c Added dependencies locally 2024-03-07 00:54:32 -05:00
simplepost.c Added dependencies locally 2024-03-07 00:54:32 -05:00
simplessl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smooth-gtk-thread.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-authzid.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-expn.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-mail.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-mime.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-multi.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-ssl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-tls.c Added dependencies locally 2024-03-07 00:54:32 -05:00
smtp-vrfy.c Added dependencies locally 2024-03-07 00:54:32 -05:00
sslbackend.c Added dependencies locally 2024-03-07 00:54:32 -05:00
synctime.c Added dependencies locally 2024-03-07 00:54:32 -05:00
threaded-ssl.c Added dependencies locally 2024-03-07 00:54:32 -05:00
unixsocket.c Added dependencies locally 2024-03-07 00:54:32 -05:00
url2file.c Added dependencies locally 2024-03-07 00:54:32 -05:00
urlapi.c Added dependencies locally 2024-03-07 00:54:32 -05:00
usercertinmem.c Added dependencies locally 2024-03-07 00:54:32 -05:00
version-check.pl Added dependencies locally 2024-03-07 00:54:32 -05:00
websocket-cb.c Added dependencies locally 2024-03-07 00:54:32 -05:00
websocket.c Added dependencies locally 2024-03-07 00:54:32 -05:00
xmlstream.c Added dependencies locally 2024-03-07 00:54:32 -05:00

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.