Daniel Stenberg 1451f4d2e1 examples: remove superfluous asterisk uses 3 سال پیش
..
.checksrc 2f72ad44fc checksrc: ban gmtime/localtime 3 سال پیش
.gitignore 77b2f702c4 examples: update .gitignore 3 سال پیش
10-at-a-time.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
Makefile.am 4d2f800677 curl.se: new home 3 سال پیش
Makefile.example 4d2f800677 curl.se: new home 3 سال پیش
Makefile.inc 71ec4e7d76 httpput-postfields.c: new example doing PUT with POSTFIELDS 3 سال پیش
Makefile.m32 4d2f800677 curl.se: new home 3 سال پیش
Makefile.netware 4d2f800677 curl.se: new home 3 سال پیش
README.md 4d2f800677 curl.se: new home 3 سال پیش
adddocsref.pl 4d2f800677 curl.se: new home 3 سال پیش
altsvc.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
anyauthput.c 4d2f800677 curl.se: new home 3 سال پیش
cacertinmem.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 سال پیش
certinfo.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
chkspeed.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
cookie_interface.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
crawler.c 207a6cbb90 src: Remove C99 constructs to ensure C89 compliance 4 سال پیش
curlgtk.c 0bc60d91de copyrights: fix copyright year range 4 سال پیش
curlx.c 308c243db5 all: fix codespell errors 4 سال پیش
debug.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ephiperfifo.c 4d2f800677 curl.se: new home 3 سال پیش
evhiperfifo.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
externalsocket.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
fileupload.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
fopen.c 0bc60d91de copyrights: fix copyright year range 4 سال پیش
ftp-wildcard.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpget.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpgetinfo.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpgetresp.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpsget.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpupload.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpuploadfrommem.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ftpuploadresume.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
getinfo.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
getinmemory.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
getredirect.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
ghiper.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
hiperfifo.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
href_extractor.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
htmltidy.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
htmltitle.cpp ac0a88fd25 copyright: fix year ranges 3 سال پیش
http-post.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
http2-download.c 4d2f800677 curl.se: new home 3 سال پیش
http2-pushinmemory.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
http2-serverpush.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
http2-upload.c 4d2f800677 curl.se: new home 3 سال پیش
http3-present.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
http3.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
httpcustomheader.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
httpput-postfields.c 71ec4e7d76 httpput-postfields.c: new example doing PUT with POSTFIELDS 3 سال پیش
httpput.c fa6bbbe167 examples/httpput: remove use of CURLOPT_PUT 3 سال پیش
https.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-append.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-authzid.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-copy.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-create.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-delete.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-examine.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-fetch.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-list.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-lsub.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-multi.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-noop.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-search.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-ssl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-store.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
imap-tls.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
makefile.dj 4d2f800677 curl.se: new home 3 سال پیش
multi-app.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-debugcallback.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-double.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-event.c 4d2f800677 curl.se: new home 3 سال پیش
multi-formadd.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-poll.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-post.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-single.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
multi-uv.c 4d2f800677 curl.se: new home 3 سال پیش
multithread.c 4d2f800677 curl.se: new home 3 سال پیش
opensslthreadlock.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
parseurl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
persistent.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-authzid.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-dele.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-list.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-multi.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-noop.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-retr.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-ssl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-stat.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-tls.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-top.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
pop3-uidl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
post-callback.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
postinmemory.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
postit2-formadd.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
postit2.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
progressfunc.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
resolve.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
rtsp.c 687908c6e6 examples/rtsp.c: correct the copyright year 3 سال پیش
sampleconv.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
sendrecv.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
sepheaders.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
sessioninfo.c 4d2f800677 curl.se: new home 3 سال پیش
sftpget.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
sftpuploadresume.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
shared-connection-cache.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
simple.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
simplepost.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
simplessl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smooth-gtk-thread.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-authzid.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-expn.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-mail.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-mime.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-multi.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-ssl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-tls.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
smtp-vrfy.c afddaa6dec examples: fix comment syntax 3 سال پیش
sslbackend.c 4d2f800677 curl.se: new home 3 سال پیش
synctime.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 سال پیش
threaded-shared-conn.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
threaded-ssl.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
url2file.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
urlapi.c ac0a88fd25 copyright: fix year ranges 3 سال پیش
usercertinmem.c 1451f4d2e1 examples: remove superfluous asterisk uses 3 سال پیش
version-check.pl 4d2f800677 curl.se: new home 3 سال پیش
xmlstream.c ac0a88fd25 copyright: fix year ranges 3 سال پیش

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