curl/docs/examples
Daniel Stenberg 4d2f800677
curl.se: new home
Closes #6172
2020-11-04 23:59:47 +01:00
..
.checksrc checksrc: ban gmtime/localtime 2020-07-28 23:51:17 +02:00
.gitignore examples: Update .gitignore 2019-01-02 14:32:01 +01:00
10-at-a-time.c curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.am curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.example curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.inc curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.m32 curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.netware curl.se: new home 2020-11-04 23:59:47 +01:00
README.md curl.se: new home 2020-11-04 23:59:47 +01:00
adddocsref.pl curl.se: new home 2020-11-04 23:59:47 +01:00
altsvc.c curl.se: new home 2020-11-04 23:59:47 +01:00
anyauthput.c curl.se: new home 2020-11-04 23:59:47 +01:00
cacertinmem.c curl.se: new home 2020-11-04 23:59:47 +01:00
certinfo.c curl.se: new home 2020-11-04 23:59:47 +01:00
chkspeed.c curl.se: new home 2020-11-04 23:59:47 +01:00
cookie_interface.c curl.se: new home 2020-11-04 23:59:47 +01:00
crawler.c src: Remove C99 constructs to ensure C89 compliance 2020-04-19 21:56:52 +02:00
curlgtk.c copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
curlx.c all: fix codespell errors 2020-05-25 19:44:04 +00:00
debug.c curl.se: new home 2020-11-04 23:59:47 +01:00
ephiperfifo.c curl.se: new home 2020-11-04 23:59:47 +01:00
evhiperfifo.c curl.se: new home 2020-11-04 23:59:47 +01:00
externalsocket.c curl.se: new home 2020-11-04 23:59:47 +01:00
fileupload.c curl.se: new home 2020-11-04 23:59:47 +01:00
fopen.c copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
ftp-wildcard.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpget.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpgetinfo.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpgetresp.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpsget.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpupload.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpuploadfrommem.c curl.se: new home 2020-11-04 23:59:47 +01:00
ftpuploadresume.c curl.se: new home 2020-11-04 23:59:47 +01:00
getinfo.c curl.se: new home 2020-11-04 23:59:47 +01:00
getinmemory.c curl.se: new home 2020-11-04 23:59:47 +01:00
getredirect.c curl.se: new home 2020-11-04 23:59:47 +01:00
ghiper.c curl.se: new home 2020-11-04 23:59:47 +01:00
hiperfifo.c curl.se: new home 2020-11-04 23:59:47 +01:00
href_extractor.c curl.se: new home 2020-11-04 23:59:47 +01:00
htmltidy.c curl.se: new home 2020-11-04 23:59:47 +01:00
htmltitle.cpp curl.se: new home 2020-11-04 23:59:47 +01:00
http-post.c curl.se: new home 2020-11-04 23:59:47 +01:00
http2-download.c curl.se: new home 2020-11-04 23:59:47 +01:00
http2-pushinmemory.c curl.se: new home 2020-11-04 23:59:47 +01:00
http2-serverpush.c curl.se: new home 2020-11-04 23:59:47 +01:00
http2-upload.c curl.se: new home 2020-11-04 23:59:47 +01:00
http3-present.c curl.se: new home 2020-11-04 23:59:47 +01:00
http3.c curl.se: new home 2020-11-04 23:59:47 +01:00
httpcustomheader.c curl.se: new home 2020-11-04 23:59:47 +01:00
httpput.c curl.se: new home 2020-11-04 23:59:47 +01:00
https.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-append.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-authzid.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-copy.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-create.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-delete.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-examine.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-fetch.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-list.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-lsub.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-multi.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-noop.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-search.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-ssl.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-store.c curl.se: new home 2020-11-04 23:59:47 +01:00
imap-tls.c curl.se: new home 2020-11-04 23:59:47 +01:00
makefile.dj curl.se: new home 2020-11-04 23:59:47 +01:00
multi-app.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-debugcallback.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-double.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-event.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-formadd.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-poll.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-post.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-single.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-uv.c curl.se: new home 2020-11-04 23:59:47 +01:00
multithread.c curl.se: new home 2020-11-04 23:59:47 +01:00
opensslthreadlock.c curl.se: new home 2020-11-04 23:59:47 +01:00
parseurl.c curl.se: new home 2020-11-04 23:59:47 +01:00
persistent.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-authzid.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-dele.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-list.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-multi.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-noop.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-retr.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-ssl.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-stat.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-tls.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-top.c curl.se: new home 2020-11-04 23:59:47 +01:00
pop3-uidl.c curl.se: new home 2020-11-04 23:59:47 +01:00
post-callback.c curl.se: new home 2020-11-04 23:59:47 +01:00
postinmemory.c curl.se: new home 2020-11-04 23:59:47 +01:00
postit2-formadd.c curl.se: new home 2020-11-04 23:59:47 +01:00
postit2.c curl.se: new home 2020-11-04 23:59:47 +01:00
progressfunc.c curl.se: new home 2020-11-04 23:59:47 +01:00
resolve.c curl.se: new home 2020-11-04 23:59:47 +01:00
rtsp.c examples/rtsp.c: correct the copyright year 2020-08-17 10:44:39 +02:00
sampleconv.c curl.se: new home 2020-11-04 23:59:47 +01:00
sendrecv.c curl.se: new home 2020-11-04 23:59:47 +01:00
sepheaders.c curl.se: new home 2020-11-04 23:59:47 +01:00
sessioninfo.c curl.se: new home 2020-11-04 23:59:47 +01:00
sftpget.c curl.se: new home 2020-11-04 23:59:47 +01:00
sftpuploadresume.c curl.se: new home 2020-11-04 23:59:47 +01:00
shared-connection-cache.c curl.se: new home 2020-11-04 23:59:47 +01:00
simple.c curl.se: new home 2020-11-04 23:59:47 +01:00
simplepost.c curl.se: new home 2020-11-04 23:59:47 +01:00
simplessl.c curl.se: new home 2020-11-04 23:59:47 +01:00
smooth-gtk-thread.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-authzid.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-expn.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-mail.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-mime.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-multi.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-ssl.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-tls.c curl.se: new home 2020-11-04 23:59:47 +01:00
smtp-vrfy.c curl.se: new home 2020-11-04 23:59:47 +01:00
sslbackend.c curl.se: new home 2020-11-04 23:59:47 +01:00
synctime.c curl.se: new home 2020-11-04 23:59:47 +01:00
threaded-shared-conn.c curl.se: new home 2020-11-04 23:59:47 +01:00
threaded-ssl.c curl.se: new home 2020-11-04 23:59:47 +01:00
url2file.c curl.se: new home 2020-11-04 23:59:47 +01:00
urlapi.c curl.se: new home 2020-11-04 23:59:47 +01:00
usercertinmem.c curl.se: new home 2020-11-04 23:59:47 +01:00
version-check.pl curl.se: new home 2020-11-04 23:59:47 +01:00
xmlstream.c curl.se: new home 2020-11-04 23:59:47 +01:00

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