Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 27-Oct-2024 | - | ||||
.checksrc | H A D | 23-May-2021 | 58 | 4 | 3 | |
.gitignore | H A D | 14-Jun-2024 | 1.4 KiB | 121 | 119 | |
10-at-a-time.c | H A D | 28-May-2024 | 4.3 KiB | 154 | 109 | |
CMakeLists.txt | H A D | 20-Sep-2024 | 1.8 KiB | 44 | 40 | |
Makefile.am | H A D | 21-Sep-2024 | 2.2 KiB | 69 | 20 | |
Makefile.example | H A D | 12-Jul-2024 | 1.9 KiB | 56 | 10 | |
Makefile.inc | H A D | 10-Jan-2024 | 3.2 KiB | 160 | 131 | |
Makefile.mk | H A D | 16-Dec-2023 | 1.5 KiB | 53 | 11 | |
README.md | H A D | 15-Oct-2024 | 1.5 KiB | 42 | 24 | |
adddocsref.pl | H A D | 03-Jan-2023 | 1.9 KiB | 59 | 28 | |
address-scope.c | H A D | 11-May-2024 | 1.8 KiB | 63 | 25 | |
altsvc.c | H A D | 27-Feb-2024 | 1.8 KiB | 59 | 20 | |
anyauthput.c | H A D | 04-Aug-2024 | 4.4 KiB | 156 | 66 | |
cacertinmem.c | H A D | 27-Feb-2024 | 7.2 KiB | 183 | 117 | |
certinfo.c | H A D | 03-Jan-2023 | 2.3 KiB | 88 | 40 | |
chkspeed.c | H A D | 19-Sep-2024 | 6.7 KiB | 225 | 146 | |
connect-to.c | H A D | 27-Feb-2024 | 2.5 KiB | 71 | 20 | |
cookie_interface.c | H A D | 20-Sep-2024 | 4 KiB | 139 | 89 | |
crawler.c | H A D | 19-Jun-2023 | 7.5 KiB | 238 | 176 | |
debug.c | H A D | 19-Sep-2024 | 4.2 KiB | 156 | 101 | |
default-scheme.c | H A D | 27-Feb-2024 | 1.8 KiB | 58 | 19 | |
ephiperfifo.c | H A D | 04-Aug-2024 | 14.5 KiB | 548 | 378 | |
evhiperfifo.c | H A D | 27-Feb-2024 | 11.9 KiB | 451 | 306 | |
externalsocket.c | H A D | 26-May-2024 | 4.8 KiB | 179 | 110 | |
fileupload.c | H A D | 03-Jan-2023 | 2.8 KiB | 90 | 43 | |
ftp-wildcard.c | H A D | 11-May-2024 | 4.2 KiB | 153 | 87 | |
ftpget.c | H A D | 20-Dec-2023 | 2.6 KiB | 95 | 43 | |
ftpgetinfo.c | H A D | 19-Sep-2024 | 2.9 KiB | 94 | 46 | |
ftpgetresp.c | H A D | 04-Aug-2024 | 2.5 KiB | 80 | 34 | |
ftpsget.c | H A D | 20-Dec-2023 | 2.9 KiB | 102 | 45 | |
ftpupload.c | H A D | 04-Aug-2024 | 4.5 KiB | 143 | 66 | |
ftpuploadfrommem.c | H A D | 04-Aug-2024 | 3.8 KiB | 127 | 67 | |
ftpuploadresume.c | H A D | 27-Feb-2024 | 4.4 KiB | 166 | 89 | |
getinfo.c | H A D | 03-Jan-2023 | 1.6 KiB | 55 | 20 | |
getinmemory.c | H A D | 27-Feb-2024 | 3.3 KiB | 119 | 50 | |
getredirect.c | H A D | 27-Feb-2024 | 2.3 KiB | 73 | 32 | |
getreferrer.c | H A D | 27-Feb-2024 | 1.8 KiB | 60 | 24 | |
ghiper.c | H A D | 19-Sep-2024 | 12 KiB | 439 | 313 | |
headerapi.c | H A D | 27-Feb-2024 | 2.5 KiB | 82 | 40 | |
hiperfifo.c | H A D | 27-Feb-2024 | 12 KiB | 466 | 310 | |
href_extractor.c | H A D | 03-Jan-2023 | 2.6 KiB | 89 | 43 | |
hsts-preload.c | H A D | 27-Feb-2024 | 3.5 KiB | 119 | 65 | |
htmltidy.c | H A D | 19-Sep-2024 | 3.9 KiB | 131 | 83 | |
htmltitle.cpp | H A D | 23-May-2023 | 6.3 KiB | 297 | 167 | |
http-options.c | H A D | 27-Feb-2024 | 1.9 KiB | 60 | 20 | |
http-post.c | H A D | 04-Aug-2024 | 2 KiB | 62 | 20 | |
http2-download.c | H A D | 19-Sep-2024 | 6.1 KiB | 231 | 146 | |
http2-pushinmemory.c | H A D | 28-May-2024 | 5 KiB | 187 | 104 | |
http2-serverpush.c | H A D | 20-Sep-2024 | 7.2 KiB | 274 | 172 | |
http2-upload.c | H A D | 31-Oct-2024 | 8.7 KiB | 327 | 221 | |
http3-present.c | H A D | 03-Jan-2023 | 1.6 KiB | 50 | 16 | |
http3.c | H A D | 27-Feb-2024 | 1.7 KiB | 56 | 19 | |
httpcustomheader.c | H A D | 03-Jan-2023 | 2.3 KiB | 73 | 25 | |
httpput-postfields.c | H A D | 04-Aug-2024 | 3.4 KiB | 106 | 39 | |
httpput.c | H A D | 04-Aug-2024 | 3.6 KiB | 124 | 48 | |
https.c | H A D | 27-Feb-2024 | 2.7 KiB | 84 | 26 | |
imap-append.c | H A D | 27-Feb-2024 | 3.7 KiB | 131 | 68 | |
imap-authzid.c | H A D | 27-Feb-2024 | 2.2 KiB | 74 | 22 | |
imap-copy.c | H A D | 27-Feb-2024 | 2.3 KiB | 74 | 20 | |
imap-create.c | H A D | 03-Jan-2023 | 2.1 KiB | 70 | 20 | |
imap-delete.c | H A D | 03-Jan-2023 | 2.1 KiB | 70 | 20 | |
imap-examine.c | H A D | 03-Jan-2023 | 2.1 KiB | 70 | 20 | |
imap-fetch.c | H A D | 27-Feb-2024 | 1.9 KiB | 68 | 20 | |
imap-list.c | H A D | 27-Feb-2024 | 2.1 KiB | 69 | 19 | |
imap-lsub.c | H A D | 07-Sep-2023 | 2.1 KiB | 71 | 20 | |
imap-multi.c | H A D | 27-Feb-2024 | 2.3 KiB | 84 | 32 | |
imap-noop.c | H A D | 03-Jan-2023 | 2 KiB | 70 | 20 | |
imap-search.c | H A D | 03-Jan-2023 | 2.3 KiB | 74 | 20 | |
imap-ssl.c | H A D | 27-Feb-2024 | 3.2 KiB | 95 | 27 | |
imap-store.c | H A D | 03-Jan-2023 | 2.7 KiB | 85 | 27 | |
imap-tls.c | H A D | 27-Feb-2024 | 3.5 KiB | 95 | 23 | |
interface.c | H A D | 30-Oct-2023 | 1.7 KiB | 53 | 15 | |
ipv6.c | H A D | 10-Jan-2024 | 1.4 KiB | 49 | 15 | |
keepalive.c | H A D | 12-Jun-2024 | 1.8 KiB | 59 | 18 | |
localport.c | H A D | 27-Feb-2024 | 1.7 KiB | 54 | 16 | |
maxconnects.c | H A D | 27-Feb-2024 | 2 KiB | 67 | 28 | |
multi-app.c | H A D | 19-Sep-2024 | 3.4 KiB | 116 | 54 | |
multi-debugcallback.c | H A D | 19-Sep-2024 | 4.1 KiB | 162 | 93 | |
multi-double.c | H A D | 28-May-2024 | 2.6 KiB | 94 | 40 | |
multi-event.c | H A D | 27-Feb-2024 | 6 KiB | 242 | 165 | |
multi-formadd.c | H A D | 21-Sep-2024 | 3.5 KiB | 121 | 56 | |
multi-legacy.c | H A D | 19-Sep-2024 | 5.2 KiB | 183 | 98 | |
multi-post.c | H A D | 28-May-2024 | 3 KiB | 105 | 45 | |
multi-single.c | H A D | 28-May-2024 | 2.2 KiB | 81 | 28 | |
multi-uv.c | H A D | 27-Jul-2024 | 6.8 KiB | 255 | 170 | |
multithread.c | H A D | 19-Sep-2024 | 2.6 KiB | 97 | 41 | |
netrc.c | H A D | 10-Jan-2024 | 1.5 KiB | 50 | 17 | |
parseurl.c | H A D | 27-Feb-2024 | 2.1 KiB | 81 | 39 | |
persistent.c | H A D | 28-May-2024 | 2.1 KiB | 71 | 25 | |
pop3-authzid.c | H A D | 27-Feb-2024 | 2.2 KiB | 73 | 21 | |
pop3-dele.c | H A D | 03-Jan-2023 | 2.1 KiB | 73 | 21 | |
pop3-list.c | H A D | 27-Feb-2024 | 1.9 KiB | 67 | 19 | |
pop3-multi.c | H A D | 27-Feb-2024 | 2.3 KiB | 85 | 32 | |
pop3-noop.c | H A D | 03-Jan-2023 | 2.1 KiB | 73 | 21 | |
pop3-retr.c | H A D | 27-Feb-2024 | 1.9 KiB | 67 | 19 | |
pop3-ssl.c | H A D | 27-Feb-2024 | 3.2 KiB | 94 | 26 | |
pop3-stat.c | H A D | 03-Jan-2023 | 2.1 KiB | 73 | 21 | |
pop3-tls.c | H A D | 27-Feb-2024 | 3.5 KiB | 94 | 22 | |
pop3-top.c | H A D | 03-Jan-2023 | 2.1 KiB | 70 | 20 | |
pop3-uidl.c | H A D | 03-Jan-2023 | 2 KiB | 70 | 20 | |
post-callback.c | H A D | 04-Aug-2024 | 5.2 KiB | 157 | 74 | |
postinmemory.c | H A D | 27-Feb-2024 | 3.4 KiB | 114 | 55 | |
postit2-formadd.c | H A D | 21-Sep-2024 | 3.8 KiB | 120 | 50 | |
postit2.c | H A D | 27-Feb-2024 | 3.4 KiB | 105 | 39 | |
progressfunc.c | H A D | 03-Jan-2023 | 3.1 KiB | 98 | 49 | |
protofeats.c | H A D | 18-Apr-2023 | 1.6 KiB | 53 | 20 | |
range.c | H A D | 27-Feb-2024 | 1.4 KiB | 46 | 14 | |
resolve.c | H A D | 27-Feb-2024 | 1.9 KiB | 59 | 18 | |
rtsp-options.c | H A D | 27-Feb-2024 | 1.7 KiB | 56 | 19 | |
sendrecv.c | H A D | 20-Sep-2024 | 5 KiB | 178 | 101 | |
sepheaders.c | H A D | 28-May-2024 | 2.7 KiB | 96 | 39 | |
sessioninfo.c | H A D | 03-Jan-2023 | 3.1 KiB | 113 | 60 | |
sftpget.c | H A D | 27-Feb-2024 | 3.3 KiB | 113 | 48 | |
sftpuploadresume.c | H A D | 03-Jan-2023 | 3.8 KiB | 138 | 83 | |
shared-connection-cache.c | H A D | 27-Feb-2024 | 2.5 KiB | 88 | 42 | |
simple.c | H A D | 27-Feb-2024 | 1.7 KiB | 54 | 18 | |
simplepost.c | H A D | 27-Feb-2024 | 1.8 KiB | 59 | 21 | |
simplessl.c | H A D | 20-Sep-2024 | 4.7 KiB | 151 | 65 | |
smooth-gtk-thread.c | H A D | 27-Feb-2024 | 5.8 KiB | 219 | 125 | |
smtp-authzid.c | H A D | 27-Feb-2024 | 5.3 KiB | 163 | 72 | |
smtp-expn.c | H A D | 27-Feb-2024 | 2.5 KiB | 82 | 23 | |
smtp-mail.c | H A D | 27-Feb-2024 | 4.9 KiB | 151 | 69 | |
smtp-mime.c | H A D | 27-Feb-2024 | 5.6 KiB | 169 | 76 | |
smtp-multi.c | H A D | 27-Feb-2024 | 4.6 KiB | 154 | 77 | |
smtp-ssl.c | H A D | 27-Feb-2024 | 5.8 KiB | 171 | 75 | |
smtp-tls.c | H A D | 27-Feb-2024 | 6.2 KiB | 174 | 71 | |
smtp-vrfy.c | H A D | 27-Feb-2024 | 2.6 KiB | 82 | 22 | |
sslbackend.c | H A D | 21-Sep-2023 | 2.3 KiB | 80 | 34 | |
synctime.c | H A D | 19-Sep-2024 | 12.6 KiB | 378 | 232 | |
threaded-ssl.c | H A D | 19-Sep-2024 | 3.2 KiB | 100 | 45 | |
unixsocket.c | H A D | 04-Aug-2024 | 2 KiB | 68 | 27 | |
url2file.c | H A D | 28-May-2024 | 2.4 KiB | 88 | 33 | |
urlapi.c | H A D | 18-Jun-2023 | 2.1 KiB | 78 | 34 | |
usercertinmem.c | H A D | 12-Jul-2024 | 8.9 KiB | 228 | 152 | |
version-check.pl | H A D | 03-Jan-2023 | 2.7 KiB | 106 | 45 | |
websocket-cb.c | H A D | 27-Feb-2024 | 2.1 KiB | 69 | 31 | |
websocket.c | H A D | 26-May-2024 | 3.5 KiB | 135 | 90 | |
xmlstream.c | H A D | 28-May-2024 | 4.9 KiB | 168 | 102 |
README.md
1<!-- 2Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 4SPDX-License-Identifier: curl 5--> 6 7# libcurl examples 8 9This directory is for libcurl programming examples. They are meant to show 10some simple steps on how you can build your own application to take full 11advantage of libcurl. 12 13If you end up with other small but still useful example sources, please mail 14them for submission in future packages and on the website. 15 16## Building 17 18The `Makefile.example` is an example Makefile that could be used to build 19these examples. Just edit the file according to your system and requirements 20first. 21 22Most examples should build fine using a command line like this: 23 24 `curl-config --cc --cflags --libs` -o example-my example.c 25 26Some compilers do not like having the arguments in this order but instead 27want you do reorganize them like: 28 29 `curl-config --cc` -o example-my example.c `curl-config --cflags --libs` 30 31**Please** do not use the `curl.se` site as a test target for your libcurl 32applications/experiments. Even if some of the examples use that site as a URL 33at some places, it does not mean that the URLs work or that we expect you to 34actually torture our website with your tests. Thanks. 35 36## Examples 37 38Each example source code file is designed to be and work stand-alone and 39rather self-explanatory. The examples may at times lack the level of error 40checks you need in a real world, but that is then only for the sake of 41readability: to make the code smaller and easier to follow. 42