1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00
curl/docs/examples
Rikard Falkeborn 77b2f702c4
examples: update .gitignore
Add files that are generated by 'make examples' and remove some that
have been renamed.

The commits that renamed the programs are e9625c5bc6 (imap.c and
simplesmtp.c were renamed to imap-fetch.c and smtp-send.c) and
ad39e7ec01 (pop3slist.c and pop3s.c were renamed to pop3-list.c and
pop3-ssl.c).

Closes #6240
2020-11-23 23:09:33 +01:00
..
.checksrc checksrc: ban gmtime/localtime 2020-07-28 23:51:17 +02:00
.gitignore examples: update .gitignore 2020-11-23 23:09:33 +01:00
10-at-a-time.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
adddocsref.pl curl.se: new home 2020-11-04 23:59:47 +01:00
altsvc.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
anyauthput.c curl.se: new home 2020-11-04 23:59:47 +01:00
cacertinmem.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
certinfo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
chkspeed.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
cookie_interface.c copyright: fix year ranges 2020-11-05 08:22:10 +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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ephiperfifo.c curl.se: new home 2020-11-04 23:59:47 +01:00
evhiperfifo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
externalsocket.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
fileupload.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
fopen.c copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
ftp-wildcard.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpget.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpgetinfo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpgetresp.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpsget.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpupload.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpuploadfrommem.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ftpuploadresume.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
getinfo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
getinmemory.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
getredirect.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
ghiper.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
hiperfifo.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
href_extractor.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
htmltidy.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
htmltitle.cpp copyright: fix year ranges 2020-11-05 08:22:10 +01:00
http2-download.c curl.se: new home 2020-11-04 23:59:47 +01:00
http2-pushinmemory.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
http2-serverpush.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
http2-upload.c curl.se: new home 2020-11-04 23:59:47 +01:00
http3-present.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
http3.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
http-post.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
httpcustomheader.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
httpput-postfields.c httpput-postfields.c: new example doing PUT with POSTFIELDS 2020-11-13 09:20:57 +01:00
httpput.c examples/httpput: remove use of CURLOPT_PUT 2020-11-09 08:25:14 +01:00
https.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-append.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-authzid.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-copy.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-create.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-delete.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-examine.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-fetch.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-list.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-lsub.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-multi.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-noop.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-search.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-ssl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-store.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
imap-tls.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
Makefile.am 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
Makefile.example curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.inc httpput-postfields.c: new example doing PUT with POSTFIELDS 2020-11-13 09:20:57 +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
multi-app.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
multi-debugcallback.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
multi-double.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
multi-event.c curl.se: new home 2020-11-04 23:59:47 +01:00
multi-formadd.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
multi-poll.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
multi-post.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
multi-single.c copyright: fix year ranges 2020-11-05 08:22:10 +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 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
parseurl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
persistent.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-authzid.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-dele.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-list.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-multi.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-noop.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-retr.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-ssl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-stat.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-tls.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-top.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
pop3-uidl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
post-callback.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
postinmemory.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
postit2-formadd.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
postit2.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
progressfunc.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
README.md curl.se: new home 2020-11-04 23:59:47 +01:00
resolve.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
rtsp.c examples/rtsp.c: correct the copyright year 2020-08-17 10:44:39 +02:00
sampleconv.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
sendrecv.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
sepheaders.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
sessioninfo.c curl.se: new home 2020-11-04 23:59:47 +01:00
sftpget.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
sftpuploadresume.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
shared-connection-cache.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
simple.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
simplepost.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
simplessl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smooth-gtk-thread.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-authzid.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-expn.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-mail.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-mime.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-multi.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-ssl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-tls.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
smtp-vrfy.c examples: fix comment syntax 2020-11-05 09:54:12 +01:00
sslbackend.c curl.se: new home 2020-11-04 23:59:47 +01:00
synctime.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
threaded-shared-conn.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
threaded-ssl.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
url2file.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
urlapi.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
usercertinmem.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
version-check.pl curl.se: new home 2020-11-04 23:59:47 +01:00
xmlstream.c copyright: fix year ranges 2020-11-05 08:22:10 +01: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 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.