Ayesh Karunaratne 4484270afc misc: typo and grammar fixes пре 2 година
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime пре 4 година
.gitignore ad9bc5976d copyright: make repository REUSE compliant пре 2 година
10-at-a-time.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
Makefile.am ad9bc5976d copyright: make repository REUSE compliant пре 2 година
Makefile.example ad9bc5976d copyright: make repository REUSE compliant пре 2 година
Makefile.inc 5357686fdf examples/curlx.c: remove пре 2 година
Makefile.m32 784400806c Makefile.m32: deduplicate build rules [ci skip] пре 2 година
README.md fd1ce3d4b0 docs: spellfixes пре 2 година
adddocsref.pl ad9bc5976d copyright: make repository REUSE compliant пре 2 година
altsvc.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
anyauthput.c 4484270afc misc: typo and grammar fixes пре 2 година
cacertinmem.c 4484270afc misc: typo and grammar fixes пре 2 година
certinfo.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
chkspeed.c c3e634d066 examples/chkspeed: improve portability пре 2 година
cookie_interface.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
crawler.c 07a9b89fed examples/crawler.c: use the curl license пре 2 година
curlgtk.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
debug.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ephiperfifo.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
evhiperfifo.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
externalsocket.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
fileupload.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ftp-wildcard.c ddeec8feba misc: nitpick grammar in comments/docs пре 2 година
ftpget.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ftpgetinfo.c 83de62babc docs/examples: avoid deprecated options in examples where possible пре 2 година
ftpgetresp.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ftpsget.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ftpupload.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ftpuploadfrommem.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ftpuploadresume.c be43dd600a CURLOPT_SERVER_RESPONSE_TIMEOUT: the new name пре 2 година
getinfo.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
getinmemory.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
getredirect.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
getreferrer.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
ghiper.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
headerapi.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
hiperfifo.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
href_extractor.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
htmltidy.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
htmltitle.cpp ad9bc5976d copyright: make repository REUSE compliant пре 2 година
http-post.c 4484270afc misc: typo and grammar fixes пре 2 година
http2-download.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
http2-pushinmemory.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
http2-serverpush.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
http2-upload.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
http3-present.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
http3.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
httpcustomheader.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
httpput-postfields.c 4484270afc misc: typo and grammar fixes пре 2 година
httpput.c 4484270afc misc: typo and grammar fixes пре 2 година
https.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-append.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-authzid.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-copy.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-create.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-delete.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-examine.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-fetch.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-list.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-lsub.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-multi.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-noop.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-search.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-ssl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-store.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
imap-tls.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
makefile.dj ad9bc5976d copyright: make repository REUSE compliant пре 2 година
multi-app.c 4484270afc misc: typo and grammar fixes пре 2 година
multi-debugcallback.c 4484270afc misc: typo and grammar fixes пре 2 година
multi-double.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
multi-event.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
multi-formadd.c 83de62babc docs/examples: avoid deprecated options in examples where possible пре 2 година
multi-legacy.c 4484270afc misc: typo and grammar fixes пре 2 година
multi-post.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
multi-single.c 4484270afc misc: typo and grammar fixes пре 2 година
multi-uv.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
multithread.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
opensslthreadlock.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
parseurl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
persistent.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-authzid.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-dele.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-list.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-multi.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-noop.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-retr.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-ssl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-stat.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-tls.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-top.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
pop3-uidl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
post-callback.c 4484270afc misc: typo and grammar fixes пре 2 година
postinmemory.c 4484270afc misc: typo and grammar fixes пре 2 година
postit2-formadd.c 83de62babc docs/examples: avoid deprecated options in examples where possible пре 2 година
postit2.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
progressfunc.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
resolve.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
sendrecv.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
sepheaders.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
sessioninfo.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
sftpget.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
sftpuploadresume.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
shared-connection-cache.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
simple.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
simplepost.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
simplessl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smooth-gtk-thread.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-authzid.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-expn.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-mail.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-mime.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-multi.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-ssl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-tls.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
smtp-vrfy.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
sslbackend.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
synctime.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
threaded-ssl.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
url2file.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
urlapi.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
usercertinmem.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година
version-check.pl ad9bc5976d copyright: make repository REUSE compliant пре 2 година
xmlstream.c ad9bc5976d copyright: make repository REUSE compliant пре 2 година

README.md

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.