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

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