2
0
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.