Daniel Stenberg c927c92086 httpcustomheader.c: make use of more CURLOPT_HTTPHEADER features %!s(int64=10) %!d(string=hai) anos
..
.gitignore 8bcf677a30 examples: gitignore more binaries %!s(int64=10) %!d(string=hai) anos
10-at-a-time.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
Makefile.am 83a42ee20e curl.h: stricter CURL_EXTERN linkage decorations logic %!s(int64=11) %!d(string=hai) anos
Makefile.example 029136da60 source header: added to more files %!s(int64=13) %!d(string=hai) anos
Makefile.inc dc0f8c04ec examples: Added IMAP LSUB example %!s(int64=10) %!d(string=hai) anos
Makefile.m32 9ad282b1ae Remove all traces of FBOpenSSL SPNEGO support %!s(int64=10) %!d(string=hai) anos
Makefile.netware 9ad282b1ae Remove all traces of FBOpenSSL SPNEGO support %!s(int64=10) %!d(string=hai) anos
README ce32176db7 xmlstream: XML stream parsing example source code %!s(int64=11) %!d(string=hai) anos
adddocsref.pl 855a9eff76 add URLs in comments for all libcurl function calls %!s(int64=20) %!d(string=hai) anos
anyauthput.c d758234ade examples/anyauthput.c: fix Tru64 compilation issue %!s(int64=11) %!d(string=hai) anos
asiohiper.cpp 616a0099d1 examples: Updated asiohiper.cpp to remove connect from opensocket %!s(int64=12) %!d(string=hai) anos
cacertinmem.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
certinfo.c f947de4bb5 examples/certinfo.c: fix compiler warning %!s(int64=11) %!d(string=hai) anos
chkspeed.c cfb7e80991 Added dns and connect time to output. %!s(int64=11) %!d(string=hai) anos
cookie_interface.c fe2b2a3b9d examples: fix compilation issues - commit 7332a7cafb follow-up %!s(int64=12) %!d(string=hai) anos
curlgtk.c ac28971aa6 examples: cleanup curl includes %!s(int64=13) %!d(string=hai) anos
curlx.c 81524cbfa0 OpenSSL: remove reference to openssl internal struct %!s(int64=12) %!d(string=hai) anos
debug.c e243d80dea Updated date. %!s(int64=11) %!d(string=hai) anos
evhiperfifo.c 1f60728f81 examples: remove all use of CURLM_CALL_MULTI_PERFORM %!s(int64=10) %!d(string=hai) anos
externalsocket.c 85b77209ae examples/externalsocket.c: fix SunPro compilation issue %!s(int64=11) %!d(string=hai) anos
fileupload.c a3dbbcfd2a Added error checking for samples. %!s(int64=12) %!d(string=hai) anos
fopen.c 76c54bd129 example: fix compiler warnings in fopen.c %!s(int64=14) %!d(string=hai) anos
ftp-wildcard.c 9e6c3638e6 ftp-wildcard.c: spell fix %!s(int64=10) %!d(string=hai) anos
ftpget.c ac28971aa6 examples: cleanup curl includes %!s(int64=13) %!d(string=hai) anos
ftpgetinfo.c 7332a7cafb examples: fix compilation issues - commit 23f8dca6fb follow-up %!s(int64=12) %!d(string=hai) anos
ftpgetresp.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
ftpsget.c 8136649e9d ftpsget: simple example showing a FTPS fetch %!s(int64=12) %!d(string=hai) anos
ftpupload.c a3dbbcfd2a Added error checking for samples. %!s(int64=12) %!d(string=hai) anos
ftpuploadresume.c 87a45c7998 MinGW64 has this prototype already. %!s(int64=13) %!d(string=hai) anos
getinfo.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
getinmemory.c 4d7bf73fc3 getinmemory: remove a comment %!s(int64=11) %!d(string=hai) anos
ghiper.c 1f60728f81 examples: remove all use of CURLM_CALL_MULTI_PERFORM %!s(int64=10) %!d(string=hai) anos
hiperfifo.c 1f60728f81 examples: remove all use of CURLM_CALL_MULTI_PERFORM %!s(int64=10) %!d(string=hai) anos
href_extractor.c 22eb00f937 example: use correct type (long) for CURLOPT_FOLLOWLOCATION %!s(int64=10) %!d(string=hai) anos
htmltidy.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
htmltitle.cpp b333504327 htmltitle: fix suggested build command %!s(int64=11) %!d(string=hai) anos
http-post.c be795f90da Added curl_global_* functions. %!s(int64=12) %!d(string=hai) anos
httpcustomheader.c c927c92086 httpcustomheader.c: make use of more CURLOPT_HTTPHEADER features %!s(int64=10) %!d(string=hai) anos
httpput.c 6fe619be7a docs/examples/httpput.c: fix build for MSVC %!s(int64=11) %!d(string=hai) anos
https.c c01b6f4d09 https.c example: remember to call curl_global_init() %!s(int64=12) %!d(string=hai) anos
imap-append.c 0c4589f0c0 imap-append.c: Fixed compilation errors on some platforms %!s(int64=10) %!d(string=hai) anos
imap-copy.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-create.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-delete.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-examine.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-fetch.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-list.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-lsub.c dc0f8c04ec examples: Added IMAP LSUB example %!s(int64=10) %!d(string=hai) anos
imap-multi.c a33e7edcec examples: Fixed compilation errors %!s(int64=10) %!d(string=hai) anos
imap-noop.c ecb0dc4c90 examples: Added IMAP NOOP example %!s(int64=10) %!d(string=hai) anos
imap-search.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-ssl.c f9797871aa examples: Added IMAP SSL and TLS examples %!s(int64=10) %!d(string=hai) anos
imap-store.c 5220c1d692 examples: Standardised username and password settings for all email examples %!s(int64=10) %!d(string=hai) anos
imap-tls.c f9797871aa examples: Added IMAP SSL and TLS examples %!s(int64=10) %!d(string=hai) anos
makefile.dj e9afbe2a65 examples/makefile.dj: update email %!s(int64=13) %!d(string=hai) anos
multi-app.c 4c070de4fb examples: use do/while loop for multi examples %!s(int64=12) %!d(string=hai) anos
multi-debugcallback.c 4c070de4fb examples: use do/while loop for multi examples %!s(int64=12) %!d(string=hai) anos
multi-double.c 4c070de4fb examples: use do/while loop for multi examples %!s(int64=12) %!d(string=hai) anos
multi-post.c 4c070de4fb examples: use do/while loop for multi examples %!s(int64=12) %!d(string=hai) anos
multi-single.c 247b291b12 examples/multi-single.c: fix the order of destructions %!s(int64=11) %!d(string=hai) anos
multi-uv.c b7d3338df2 multi-uv.c: call curl_multi_info_read() better %!s(int64=10) %!d(string=hai) anos
multithread.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
opensslthreadlock.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
persistant.c a3dbbcfd2a Added error checking for samples. %!s(int64=12) %!d(string=hai) anos
pop3-dele.c 27ecc22649 pop3-dele.c: Added missing CURLOPT_NOBODY following feedback %!s(int64=10) %!d(string=hai) anos
pop3-list.c 5be92d03b0 examples: Added return of error code in POP3 examples %!s(int64=10) %!d(string=hai) anos
pop3-multi.c a33e7edcec examples: Fixed compilation errors %!s(int64=10) %!d(string=hai) anos
pop3-noop.c a6742a1c12 examples: Added POP3 NOOP example %!s(int64=10) %!d(string=hai) anos
pop3-retr.c afb65c6cf3 examples: Added POP3 RETR example %!s(int64=10) %!d(string=hai) anos
pop3-ssl.c 0f4bf77bd3 examples: Added POP3 TLS example %!s(int64=10) %!d(string=hai) anos
pop3-stat.c e209d60713 pop3-stat.c: Corrected small typo from commit 91d62e9abd761c %!s(int64=10) %!d(string=hai) anos
pop3-tls.c 0f4bf77bd3 examples: Added POP3 TLS example %!s(int64=10) %!d(string=hai) anos
pop3-top.c 3e17db4882 examples: Added POP3 TOP example %!s(int64=10) %!d(string=hai) anos
pop3-uidl.c e948b9c6e3 examples: Added POP3 UIDL example %!s(int64=10) %!d(string=hai) anos
post-callback.c 7332a7cafb examples: fix compilation issues - commit 23f8dca6fb follow-up %!s(int64=12) %!d(string=hai) anos
postinmemory.c 3c34f453fa postinmemory: new example %!s(int64=11) %!d(string=hai) anos
postit2.c a3dbbcfd2a Added error checking for samples. %!s(int64=12) %!d(string=hai) anos
progressfunc.c 12d01cb6fa CURLOPT_XFERINFOFUNCTION: introducing a new progress callback %!s(int64=11) %!d(string=hai) anos
resolve.c cce6508242 resolve.c: new example showing off CURLOPT_RESOLVE %!s(int64=13) %!d(string=hai) anos
rtsp.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
sampleconv.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
sendrecv.c 865893fb14 examples: fix compiler warnings %!s(int64=12) %!d(string=hai) anos
sepheaders.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
sessioninfo.c dc68120e63 curl_easy_getinfo: Post CURLINFO_TLS_SESSION tidy up %!s(int64=11) %!d(string=hai) anos
sftpget.c 71358ddffd sftpget: SFTP is not "SSH FTP" %!s(int64=12) %!d(string=hai) anos
simple.c 5243b18f3d Fixed simple.c to work again unchanged. %!s(int64=11) %!d(string=hai) anos
simplepost.c a3dbbcfd2a Added error checking for samples. %!s(int64=12) %!d(string=hai) anos
simplessl.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
smooth-gtk-thread.c ac28971aa6 examples: cleanup curl includes %!s(int64=13) %!d(string=hai) anos
smtp-expn.c fc0b4b0d31 examples: Added required libcurl version information to SMTP examples %!s(int64=10) %!d(string=hai) anos
smtp-mail.c e473a4d2f3 examples: Updated SMTP MAIL example to return libcurl result code %!s(int64=10) %!d(string=hai) anos
smtp-multi.c 3a4cd2ad8d smtp-multi.c: Minor coding style tidyup following POP3 and IMAP additions %!s(int64=10) %!d(string=hai) anos
smtp-ssl.c 7e85964080 examples: Synchronised comments between SMTP MAIL examples %!s(int64=10) %!d(string=hai) anos
smtp-tls.c 7e85964080 examples: Synchronised comments between SMTP MAIL examples %!s(int64=10) %!d(string=hai) anos
smtp-vrfy.c fc0b4b0d31 examples: Added required libcurl version information to SMTP examples %!s(int64=10) %!d(string=hai) anos
synctime.c dafa2fc944 Fixed scanf format for WORD = unsigned short. %!s(int64=13) %!d(string=hai) anos
threaded-ssl.c 1aeb635cdd sources: update source headers %!s(int64=13) %!d(string=hai) anos
url2file.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
usercertinmem.c 3ae2b6cd7f Update instances of some obsolete CURLOPTs to their new names %!s(int64=10) %!d(string=hai) anos
version-check.pl ed0364343d removed trailing whitespace %!s(int64=12) %!d(string=hai) anos
xmlstream.c ce32176db7 xmlstream: XML stream parsing example source code %!s(int64=11) %!d(string=hai) anos

README

_ _ ____ _
___| | | | _ \| |
/ __| | | | |_) | |
| (__| |_| | _ <| |___
\___|\___/|_| \_\_____|

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

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.haxx.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 web site with your tests! Thanks.

EXAMPLES

anyauthput.c - HTTP PUT using "any" authentication method
cacertinmem.c - Use a built-in PEM certificate to retrieve a https page
cookie_interface.c - shows usage of simple cookie interface
curlgtk.c - download using a GTK progress bar
curlx.c - getting file info from the remote cert data
debug.c - showing how to use the debug callback
fileupload.c - uploading to a file:// URL
fopen.c - fopen() layer that supports opening URLs and files
ftpget.c - simple getting a file from FTP
ftpgetresp.c - get the response strings from the FTP server
ftpupload.c - upload a file to an FTP server
ftpuploadresume.c - resume an upload to an FTP server
getinfo.c - get the Content-Type from the recent transfer
getinmemory.c - download a file to memory only
ghiper.c - curl_multi_socket() using code with glib-2
hiperfifo.c - downloads all URLs written to the fifo, using
curl_multi_socket() and libevent
htmltidy.c - download a document and use libtidy to parse the HTML
htmltitle.cc - download a HTML file and extract the