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