You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Stenberg 73a2fcea0b includes: remove curl/curlbuild.h and curl/curlrules.h 2 years ago
..
.gitignore docs/examples: gitignore some more built examples 3 years ago
10-at-a-time.c checksrc: white space edits to comply to stricter checksrc 2 years ago
Makefile.am includes: remove curl/curlbuild.h and curl/curlrules.h 2 years ago
Makefile.example URLs: change all http:// URLs to https:// 3 years ago
Makefile.inc examples: ftpuploadfrommem.c 2 years ago
Makefile.m32 URLs: change all http:// URLs to https:// 3 years ago
Makefile.netware spelling fixes 2 years ago
README examples/README: cut out the incomplete list 3 years ago
adddocsref.pl URLs: change all http:// URLs to https:// 3 years ago
anyauthput.c anyauthput: remove unused code 2 years ago
asiohiper.cpp asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input 2 years ago
cacertinmem.c spelling fixes 2 years ago
certinfo.c typecheck-gcc.h: check CURLINFO_CERTINFO 2 years ago
chkspeed.c examples: adhere to curl code style 3 years ago
cookie_interface.c cookie_interface: fix -Wcomma warning 2 years ago
curlgtk.c examples: adhere to curl code style 3 years ago
curlx.c spelling fixes 2 years ago
debug.c examples: fix Wimplicit-fallthrough warnings 2 years ago
evhiperfifo.c asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input 2 years ago
externalsocket.c examples/externalsocket.c: s/closesocket/closecb 2 years ago
fileupload.c examples/fileupload.c: fclose the file as well 2 years ago
fopen.c examples: declare TU-local variables static 2 years ago
ftp-wildcard.c examples: adhere to curl code style 3 years ago
ftpget.c examples: adhere to curl code style 3 years ago
ftpgetinfo.c examples: adhere to curl code style 3 years ago
ftpgetresp.c examples: adhere to curl code style 3 years ago
ftpsget.c URLs: change all http:// URLs to https:// 3 years ago
ftpupload.c checksrc: stricter no-space-before-paren enforcement 2 years ago
ftpuploadfrommem.c examples: fixed too long line and too long string warnings 2 years ago
ftpuploadresume.c checksrc: code style: use 'char *name' style 2 years ago
getinfo.c URLs: change all http:// URLs to https:// 3 years ago
getinmemory.c URLs: change all http:// URLs to https:// 3 years ago
getredirect.c URLs: change all http:// URLs to https:// 3 years ago
ghiper.c ghiper.c/hiperfifo.c: add comment about missing timer functionality 2 years ago
hiperfifo.c ghiper.c/hiperfifo.c: add comment about missing timer functionality 2 years ago
href_extractor.c examples: adhere to curl code style 3 years ago
htmltidy.c docs/examples: remove spurious white spaces all over 3 years ago
htmltitle.cpp examples: make the C++ examples follow our code style too 2 years ago
http-post.c URLs: change all http:// URLs to https:// 3 years ago
http2-download.c examples: fix Wimplicit-fallthrough warnings 2 years ago
http2-serverpush.c examples: fix Wimplicit-fallthrough warnings 2 years ago
http2-upload.c examples: fix Wimplicit-fallthrough warnings 2 years ago
httpcustomheader.c URLs: change all http:// URLs to https:// 3 years ago
httpput.c examples: adhere to curl code style 3 years ago
https.c URLs: change all http:// URLs to https:// 3 years ago
imap-append.c examples/imap-append: Set size of data to be uploaded 3 years ago
imap-copy.c spelling fixes 2 years ago
imap-create.c spelling fixes 2 years ago
imap-delete.c spelling fixes 2 years ago
imap-examine.c spelling fixes 2 years ago
imap-fetch.c examples: adhere to curl code style 3 years ago
imap-list.c URLs: change all http:// URLs to https:// 3 years ago
imap-lsub.c URLs: change all http:// URLs to https:// 3 years ago
imap-multi.c examples: adhere to curl code style 3 years ago
imap-noop.c URLs: change all http:// URLs to https:// 3 years ago
imap-search.c spelling fixes 2 years ago
imap-ssl.c examples: adhere to curl code style 3 years ago
imap-store.c URLs: change all http:// URLs to https:// 3 years ago
imap-tls.c examples: adhere to curl code style 3 years ago
makefile.dj URLs: change all http:// URLs to https:// 3 years ago
multi-app.c checksrc: stricter no-space-before-paren enforcement 2 years ago
multi-debugcallback.c examples: fix Wimplicit-fallthrough warnings 2 years ago
multi-double.c examples: adhere to curl code style 3 years ago
multi-post.c checksrc: stricter no-space-before-paren enforcement 2 years ago
multi-single.c examples: adhere to curl code style 3 years ago
multi-uv.c examples/multi-uv.c: fix deprecated symbol 2 years ago
multithread.c examples/multithread.c: link to our multi-thread docs 2 years ago
opensslthreadlock.c checksrc: code style: use 'char *name' style 2 years ago
persistant.c URLs: change all http:// URLs to https:// 3 years ago
pop3-dele.c URLs: change all http:// URLs to https:// 3 years ago
pop3-list.c URLs: change all http:// URLs to https:// 3 years ago
pop3-multi.c examples: adhere to curl code style 3 years ago
pop3-noop.c URLs: change all http:// URLs to https:// 3 years ago
pop3-retr.c URLs: change all http:// URLs to https:// 3 years ago
pop3-ssl.c URLs: change all http:// URLs to https:// 3 years ago
pop3-stat.c URLs: change all http:// URLs to https:// 3 years ago
pop3-tls.c examples: adhere to curl code style 3 years ago
pop3-top.c spelling fixes 2 years ago
pop3-uidl.c URLs: change all http:// URLs to https:// 3 years ago
post-callback.c examples: declare TU-local variables static 2 years ago
postinmemory.c URLs: change all http:// URLs to https:// 3 years ago
postit2.c checksrc: stricter no-space-before-paren enforcement 2 years ago
progressfunc.c URLs: change all http:// URLs to https:// 3 years ago
resolve.c URLs: change all http:// URLs to https:// 3 years ago
rtsp.c checksrc: warn for assignments within if() expressions 2 years ago
sampleconv.c examples/sampleconv.c: indent changes, made callbacks static 2 years ago
sendrecv.c sendrecv: fix MinGW-w64 warning 2 years ago
sepheaders.c examples: fix some compiler warnings 3 years ago
sessioninfo.c s/cURL/curl 2 years ago
sftpget.c URLs: change all http:// URLs to https:// 3 years ago
simple.c URLs: change all http:// URLs to https:// 3 years ago
simplepost.c URLs: change all http:// URLs to https:// 3 years ago
simplessl.c simplessl.c: warning: while with space 3 years ago
smooth-gtk-thread.c checksrc: stricter no-space-before-paren enforcement 2 years ago
smtp-expn.c URLs: change all http:// URLs to https:// 3 years ago
smtp-mail.c examples: adhere to curl code style 3 years ago
smtp-multi.c examples: adhere to curl code style 3 years ago
smtp-ssl.c examples: adhere to curl code style 3 years ago
smtp-tls.c examples: adhere to curl code style 3 years ago
smtp-vrfy.c URLs: change all http:// URLs to https:// 3 years ago
synctime.c checksrc: stricter no-space-before-paren enforcement 2 years ago
threaded-ssl.c examples: adhere to curl code style 3 years ago
url2file.c docs/examples: remove spurious white spaces all over 3 years ago
usercertinmem.c usercertinmem.c: improve the short description 2 years ago
version-check.pl URLs: change all http:// URLs to https:// 3 years ago
xmlstream.c examples: adhere to curl code style 3 years ago

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

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.