Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.gitignore | D | 22-Nov-2023 | 777 | 76 | 75 | |
10-at-a-time.c | D | 22-Nov-2023 | 5.1 KiB | 197 | 145 | |
Makefile.am | D | 22-Nov-2023 | 2.2 KiB | 64 | 19 | |
Makefile.example | D | 22-Nov-2023 | 1.9 KiB | 54 | 10 | |
Makefile.inc | D | 22-Nov-2023 | 2.4 KiB | 44 | 17 | |
Makefile.m32 | D | 22-Nov-2023 | 7.6 KiB | 298 | 228 | |
Makefile.netware | D | 22-Nov-2023 | 10.8 KiB | 435 | 342 | |
README | D | 22-Nov-2023 | 4 KiB | 83 | 71 | |
adddocsref.pl | D | 22-Nov-2023 | 874 | 36 | 28 | |
anyauthput.c | D | 22-Nov-2023 | 5 KiB | 186 | 96 | |
asiohiper.cpp | D | 22-Nov-2023 | 12.6 KiB | 468 | 307 | |
cacertinmem.c | D | 22-Nov-2023 | 6.7 KiB | 156 | 98 | |
certinfo.c | D | 22-Nov-2023 | 2.3 KiB | 87 | 44 | |
chkspeed.c | D | 22-Nov-2023 | 6.1 KiB | 191 | 117 | |
cookie_interface.c | D | 22-Nov-2023 | 3.9 KiB | 130 | 85 | |
curlgtk.c | D | 22-Nov-2023 | 2.9 KiB | 107 | 72 | |
curlx.c | D | 22-Nov-2023 | 15.7 KiB | 514 | 308 | |
debug.c | D | 22-Nov-2023 | 4 KiB | 148 | 98 | |
evhiperfifo.c | D | 22-Nov-2023 | 11.8 KiB | 442 | 304 | |
externalsocket.c | D | 22-Nov-2023 | 4.4 KiB | 154 | 92 | |
fileupload.c | D | 22-Nov-2023 | 2.6 KiB | 87 | 42 | |
fopen.c | D | 22-Nov-2023 | 13.6 KiB | 543 | 338 | |
ftp-wildcard.c | D | 22-Nov-2023 | 4.1 KiB | 149 | 88 | |
ftpget.c | D | 22-Nov-2023 | 2.8 KiB | 95 | 43 | |
ftpgetinfo.c | D | 22-Nov-2023 | 2.9 KiB | 90 | 43 | |
ftpgetresp.c | D | 22-Nov-2023 | 2.5 KiB | 77 | 32 | |
ftpsget.c | D | 22-Nov-2023 | 3.1 KiB | 102 | 45 | |
ftpupload.c | D | 22-Nov-2023 | 4.5 KiB | 141 | 65 | |
ftpuploadresume.c | D | 22-Nov-2023 | 4.7 KiB | 175 | 90 | |
getinfo.c | D | 22-Nov-2023 | 1.8 KiB | 54 | 20 | |
getinmemory.c | D | 22-Nov-2023 | 3.2 KiB | 116 | 49 | |
ghiper.c | D | 22-Nov-2023 | 11.7 KiB | 452 | 294 | |
hiperfifo.c | D | 22-Nov-2023 | 11.6 KiB | 436 | 292 | |
href_extractor.c | D | 22-Nov-2023 | 2.6 KiB | 87 | 43 | |
htmltidy.c | D | 22-Nov-2023 | 4 KiB | 131 | 85 | |
htmltitle.cpp | D | 22-Nov-2023 | 6.2 KiB | 314 | 177 | |
http-post.c | D | 22-Nov-2023 | 1.9 KiB | 56 | 20 | |
http2-download.c | D | 22-Nov-2023 | 7.6 KiB | 289 | 181 | |
http2-upload.c | D | 22-Nov-2023 | 9.3 KiB | 353 | 227 | |
httpcustomheader.c | D | 22-Nov-2023 | 2.2 KiB | 67 | 25 | |
httpput.c | D | 22-Nov-2023 | 3.6 KiB | 121 | 48 | |
https.c | D | 22-Nov-2023 | 2.5 KiB | 75 | 25 | |
imap-append.c | D | 22-Nov-2023 | 3.5 KiB | 117 | 61 | |
imap-copy.c | D | 22-Nov-2023 | 2.3 KiB | 66 | 20 | |
imap-create.c | D | 22-Nov-2023 | 2 KiB | 62 | 20 | |
imap-delete.c | D | 22-Nov-2023 | 2 KiB | 62 | 20 | |
imap-examine.c | D | 22-Nov-2023 | 2 KiB | 62 | 20 | |
imap-fetch.c | D | 22-Nov-2023 | 1.9 KiB | 59 | 19 | |
imap-list.c | D | 22-Nov-2023 | 2 KiB | 61 | 19 | |
imap-lsub.c | D | 22-Nov-2023 | 2 KiB | 63 | 20 | |
imap-multi.c | D | 22-Nov-2023 | 4.7 KiB | 168 | 94 | |
imap-noop.c | D | 22-Nov-2023 | 1.9 KiB | 62 | 20 | |
imap-search.c | D | 22-Nov-2023 | 2.3 KiB | 66 | 20 | |
imap-ssl.c | D | 22-Nov-2023 | 3.2 KiB | 86 | 26 | |
imap-store.c | D | 22-Nov-2023 | 2.6 KiB | 77 | 27 | |
imap-tls.c | D | 22-Nov-2023 | 3.4 KiB | 85 | 22 | |
makefile.dj | D | 22-Nov-2023 | 1.7 KiB | 61 | 21 | |
multi-app.c | D | 22-Nov-2023 | 5.1 KiB | 175 | 97 | |
multi-debugcallback.c | D | 22-Nov-2023 | 6 KiB | 227 | 140 | |
multi-double.c | D | 22-Nov-2023 | 3.9 KiB | 141 | 73 | |
multi-post.c | D | 22-Nov-2023 | 5.1 KiB | 170 | 96 | |
multi-single.c | D | 22-Nov-2023 | 3.1 KiB | 110 | 49 | |
multi-uv.c | D | 22-Nov-2023 | 5.9 KiB | 231 | 156 | |
multithread.c | D | 22-Nov-2023 | 2.6 KiB | 94 | 41 | |
opensslthreadlock.c | D | 22-Nov-2023 | 2.7 KiB | 95 | 50 | |
persistant.c | D | 22-Nov-2023 | 2.1 KiB | 65 | 26 | |
pop3-dele.c | D | 22-Nov-2023 | 2.1 KiB | 65 | 21 | |
pop3-list.c | D | 22-Nov-2023 | 1.9 KiB | 59 | 19 | |
pop3-multi.c | D | 22-Nov-2023 | 4.7 KiB | 168 | 94 | |
pop3-noop.c | D | 22-Nov-2023 | 2 KiB | 65 | 21 | |
pop3-retr.c | D | 22-Nov-2023 | 1.9 KiB | 59 | 19 | |
pop3-ssl.c | D | 22-Nov-2023 | 3.2 KiB | 86 | 26 | |
pop3-stat.c | D | 22-Nov-2023 | 2.1 KiB | 65 | 21 | |
pop3-tls.c | D | 22-Nov-2023 | 3.4 KiB | 85 | 22 | |
pop3-top.c | D | 22-Nov-2023 | 2 KiB | 62 | 20 | |
pop3-uidl.c | D | 22-Nov-2023 | 1.9 KiB | 62 | 20 | |
post-callback.c | D | 22-Nov-2023 | 4.7 KiB | 144 | 66 | |
postinmemory.c | D | 22-Nov-2023 | 3.3 KiB | 111 | 54 | |
postit2.c | D | 22-Nov-2023 | 3.5 KiB | 104 | 44 | |
progressfunc.c | D | 22-Nov-2023 | 3.9 KiB | 120 | 62 | |
resolve.c | D | 22-Nov-2023 | 1.8 KiB | 52 | 18 | |
rtsp.c | D | 22-Nov-2023 | 8.3 KiB | 272 | 189 | |
sampleconv.c | D | 22-Nov-2023 | 3.3 KiB | 108 | 59 | |
sendrecv.c | D | 22-Nov-2023 | 3.6 KiB | 136 | 78 | |
sepheaders.c | D | 22-Nov-2023 | 2.6 KiB | 91 | 40 | |
sessioninfo.c | D | 22-Nov-2023 | 3 KiB | 106 | 59 | |
sftpget.c | D | 22-Nov-2023 | 3.2 KiB | 107 | 48 | |
simple.c | D | 22-Nov-2023 | 1.6 KiB | 48 | 18 | |
simplepost.c | D | 22-Nov-2023 | 1.8 KiB | 54 | 21 | |
simplessl.c | D | 22-Nov-2023 | 4.5 KiB | 139 | 62 | |
smooth-gtk-thread.c | D | 22-Nov-2023 | 6.1 KiB | 229 | 127 | |
smtp-expn.c | D | 22-Nov-2023 | 2.5 KiB | 74 | 23 | |
smtp-mail.c | D | 22-Nov-2023 | 4.7 KiB | 138 | 65 | |
smtp-multi.c | D | 22-Nov-2023 | 6.9 KiB | 238 | 139 | |
smtp-ssl.c | D | 22-Nov-2023 | 5.6 KiB | 162 | 74 | |
smtp-tls.c | D | 22-Nov-2023 | 6.1 KiB | 164 | 70 | |
smtp-vrfy.c | D | 22-Nov-2023 | 2.5 KiB | 74 | 22 | |
synctime.c | D | 22-Nov-2023 | 12.4 KiB | 368 | 232 | |
threaded-ssl.c | D | 22-Nov-2023 | 4.2 KiB | 163 | 98 | |
url2file.c | D | 22-Nov-2023 | 2.3 KiB | 81 | 33 | |
usercertinmem.c | D | 22-Nov-2023 | 9 KiB | 225 | 152 | |
version-check.pl | D | 22-Nov-2023 | 2.6 KiB | 106 | 45 | |
xmlstream.c | D | 22-Nov-2023 | 4.8 KiB | 159 | 98 |
README
1 _ _ ____ _ 2 ___| | | | _ \| | 3 / __| | | | |_) | | 4 | (__| |_| | _ <| |___ 5 \___|\___/|_| \_\_____| 6 7This directory is for libcurl programming examples. They are meant to show 8some simple steps on how you can build your own application to take full 9advantage of libcurl. 10 11If you end up with other small but still useful example sources, please mail 12them for submission in future packages and on the web site. 13 14BUILDING 15 16The Makefile.example is an example makefile that could be used to build these 17examples. Just edit the file according to your system and requirements first. 18 19Most examples should build fine using a command line like this: 20 21 $ `curl-config --cc --cflags --libs` -o example example.c 22 23Some compilers don't like having the arguments in this order but instead 24want you do reorganize them like: 25 26 $ `curl-config --cc` -o example example.c `curl-config --cflags --libs` 27 28*PLEASE* do not use the curl.haxx.se site as a test target for your libcurl 29applications/experiments. Even if some of the examples use that site as a URL 30at some places, it doesn't mean that the URLs work or that we expect you to 31actually torture our web site with your tests! Thanks. 32 33EXAMPLES 34 35anyauthput.c - HTTP PUT using "any" authentication method 36cacertinmem.c - Use a built-in PEM certificate to retrieve a https page 37cookie_interface.c - shows usage of simple cookie interface 38curlgtk.c - download using a GTK progress bar 39curlx.c - getting file info from the remote cert data 40debug.c - showing how to use the debug callback 41fileupload.c - uploading to a file:// URL 42fopen.c - fopen() layer that supports opening URLs and files 43ftpget.c - simple getting a file from FTP 44ftpgetresp.c - get the response strings from the FTP server 45ftpupload.c - upload a file to an FTP server 46ftpuploadresume.c - resume an upload to an FTP server 47getinfo.c - get the Content-Type from the recent transfer 48getinmemory.c - download a file to memory only 49ghiper.c - curl_multi_socket() using code with glib-2 50hiperfifo.c - downloads all URLs written to the fifo, using 51 curl_multi_socket() and libevent 52htmltidy.c - download a document and use libtidy to parse the HTML 53htmltitle.cc - download a HTML file and extract the <title> tag from a HTML 54 page using libxml 55http-post.c - HTTP POST 56httpput.c - HTTP PUT a local file 57https.c - simple HTTPS transfer 58imap.c - simple IMAP transfer 59multi-app.c - a multi-interface app 60multi-debugcallback.c - a multi-interface app using the debug callback 61multi-double.c - a multi-interface app doing two simultaneous transfers 62multi-post.c - a multi-interface app doing a multipart formpost 63multi-single.c - a multi-interface app getting a single file 64multi-uv.c - a multi-interface app using libuv 65multithread.c - an example using multi-treading transferring multiple files 66opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded 67persistant.c - request two URLs with a persistent connection 68pop3s.c - POP3S transfer 69pop3slist.c - POP3S LIST 70post-callback.c - send a HTTP POST using a callback 71postit2.c - send a HTTP multipart formpost 72sampleconv.c - showing how a program on a non-ASCII platform would invoke 73 callbacks to do its own codeset conversions instead of using 74 the built-in iconv functions in libcurl 75sepheaders.c - download headers to a separate file 76simple.c - the most simple download a URL source 77simplepost.c - HTTP POST 78simplessl.c - HTTPS example with certificates many options set 79synctime.c - Sync local time by extracting date from remote HTTP servers 80url2file.c - download a document and store it in a file 81xmlstream.c - Stream-parse a document using the streaming Expat parser 8210-at-a-time.c - Download many files simultaneously, 10 at a time. 83