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.