curl/docs/examples
Viktor Szakats 07a0047882
Makefile.m32: cleanups and fixes [ci skip]
- Add `-lcrypt32` once, and add it always for simplicity.
- Delete broken link and reference to the pre-Vista WinIDN add-on.
  MS no longer distribute it.
- Delete related `WINIDN_PATH` option. IDN is a system lib since Vista.
- Sync `LIBCARES_PATH` default with the rest of dependencies.
- Delete version numbers from dependency path defaults.
- `libgsasl` package is now called `gsasl`.
- Delete `libexpat` and `libxml2` references. No longer used by curl.
- Delete `Edit the path below...` comments. We recommend to predefine
  those envvars instead.
- `libcares.a` is not an internal dependency anymore. Stop using it as
  such.
- `windres` `--include-dir` -> `-I`, `-F` -> `--target=` for readability.
- Delete `STRIP`, `CURL_STRIP`, `AR` references from `src/Makefile.m32`.
  They were never used.
- Stop to `clean` some objects twice in `src/Makefile.m32`.
- Delete cvs-specific leftovers.
- Finish resource support in examples make file.
- Delete `-I<root>/lib` from examples make file.
- Fix copyright start year in examples make file.
- Delete duplicate `ftpuploadresume` input in examples make file.
- Sync OpenSSL lib order, `SYNC` support, `PROOT` use, dependency path
  defaults, variables names and other internal bits between the three
  make files.
- `lib/Makefile.m32` accepted custom options via `DLL_LIBS` envvar. This
  was lib-specific and possibly accidental. Use `CURL_LDFLAG_EXTRAS_DLL`
  envvar for the same effect.
- Fix linking `curl.exe` and examples to wrong static libs with
  auto-detected OpenSSL 1.0.2 or earlier.
- Add `-lgdi32` for OpenSSL 1.0.2 and earlier only.
- Add link to Novell LDAP SDK and use a relative default path. Latest
  version is from 2016, linked to an outdated OpenSSL 1.0.1.
- Whitespace and comment cleanups.

TODO in a next commit:

Delete built-in detection/logic for OpenSSL 1.0.2 and earlier, the Novell
LDAP SDK and the other LDAP SDK (which is _not_ OpenLDAP). Write up the
necessary custom envvars to configure them.

Closes #9616
2022-10-01 10:14:18 +00:00
..
.checksrc
.gitignore copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
10-at-a-time.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
adddocsref.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
altsvc.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
anyauthput.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
cacertinmem.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
certinfo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
chkspeed.c examples/chkspeed: improve portability 2022-09-21 23:52:34 +02:00
cookie_interface.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
crawler.c examples/crawler.c: use the curl license 2022-06-02 15:41:01 +02:00
curlgtk.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
debug.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ephiperfifo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
evhiperfifo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
externalsocket.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
fileupload.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftp-wildcard.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpget.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpgetinfo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpgetresp.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpsget.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpupload.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpuploadfrommem.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ftpuploadresume.c CURLOPT_SERVER_RESPONSE_TIMEOUT: the new name 2022-07-05 10:16:05 +02:00
getinfo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
getinmemory.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
getredirect.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
getreferrer.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ghiper.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
headerapi.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
hiperfifo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
href_extractor.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
htmltidy.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
htmltitle.cpp copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http2-download.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http2-pushinmemory.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http2-serverpush.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http2-upload.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http3-present.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http3.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
http-post.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
httpcustomheader.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
httpput-postfields.c httpput-postfields.c: shorten string for C89 compliance 2022-09-21 09:59:40 +02:00
httpput.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
https.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-append.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-authzid.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-copy.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-create.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-delete.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-examine.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-fetch.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-list.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-lsub.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-multi.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-noop.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-search.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-ssl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-store.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
imap-tls.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
Makefile.am copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
makefile.dj copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
Makefile.example copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
Makefile.inc examples/curlx.c: remove 2022-08-18 00:00:12 +02:00
Makefile.m32 Makefile.m32: cleanups and fixes [ci skip] 2022-10-01 10:14:18 +00:00
multi-app.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-debugcallback.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-double.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-event.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-formadd.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-legacy.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-post.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-single.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multi-uv.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
multithread.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
opensslthreadlock.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
parseurl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
persistent.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-authzid.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-dele.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-list.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-multi.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-noop.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-retr.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-ssl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-stat.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-tls.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-top.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
pop3-uidl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
post-callback.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
postinmemory.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
postit2-formadd.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
postit2.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
progressfunc.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
README.md docs: spellfixes 2022-09-21 15:20:08 +02:00
resolve.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sendrecv.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sepheaders.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sessioninfo.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sftpget.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sftpuploadresume.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
shared-connection-cache.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
simple.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
simplepost.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
simplessl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smooth-gtk-thread.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-authzid.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-expn.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-mail.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-mime.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-multi.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-ssl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-tls.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
smtp-vrfy.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sslbackend.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
synctime.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
threaded-ssl.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
url2file.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
urlapi.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
usercertinmem.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
version-check.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
xmlstream.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02: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.