Name Date Size #Lines LOC

..Today-

.checksrcH A D23-May-202158 43

.gitignoreH A D14-Jun-20241.4 KiB121119

10-at-a-time.cH A D28-May-20244.3 KiB154109

CMakeLists.txtH A D20-Sep-20241.8 KiB4440

Makefile.amH A D21-Sep-20242.2 KiB6920

Makefile.exampleH A D12-Jul-20241.9 KiB5610

Makefile.incH A D10-Jan-20243.2 KiB160131

Makefile.mkH A D16-Dec-20231.5 KiB5311

README.mdH A D15-Oct-20241.5 KiB4224

adddocsref.plH A D03-Jan-20231.9 KiB5928

address-scope.cH A D11-May-20241.8 KiB6325

altsvc.cH A D27-Feb-20241.8 KiB5920

anyauthput.cH A D04-Aug-20244.4 KiB15666

cacertinmem.cH A D27-Feb-20247.2 KiB183117

certinfo.cH A D03-Jan-20232.3 KiB8840

chkspeed.cH A D19-Sep-20246.7 KiB225146

connect-to.cH A D27-Feb-20242.5 KiB7120

cookie_interface.cH A D20-Sep-20244 KiB13989

crawler.cH A D19-Jun-20237.5 KiB238176

debug.cH A D19-Sep-20244.2 KiB156101

default-scheme.cH A D27-Feb-20241.8 KiB5819

ephiperfifo.cH A D04-Aug-202414.5 KiB548378

evhiperfifo.cH A D27-Feb-202411.9 KiB451306

externalsocket.cH A D26-May-20244.8 KiB179110

fileupload.cH A D03-Jan-20232.8 KiB9043

ftp-wildcard.cH A D11-May-20244.2 KiB15387

ftpget.cH A D20-Dec-20232.6 KiB9543

ftpgetinfo.cH A D19-Sep-20242.9 KiB9446

ftpgetresp.cH A D04-Aug-20242.5 KiB8034

ftpsget.cH A D20-Dec-20232.9 KiB10245

ftpupload.cH A D04-Aug-20244.5 KiB14366

ftpuploadfrommem.cH A D04-Aug-20243.8 KiB12767

ftpuploadresume.cH A D27-Feb-20244.4 KiB16689

getinfo.cH A D03-Jan-20231.6 KiB5520

getinmemory.cH A D27-Feb-20243.3 KiB11950

getredirect.cH A D27-Feb-20242.3 KiB7332

getreferrer.cH A D27-Feb-20241.8 KiB6024

ghiper.cH A D19-Sep-202412 KiB439313

headerapi.cH A D27-Feb-20242.5 KiB8240

hiperfifo.cH A D27-Feb-202412 KiB466310

href_extractor.cH A D03-Jan-20232.6 KiB8943

hsts-preload.cH A D27-Feb-20243.5 KiB11965

htmltidy.cH A D19-Sep-20243.9 KiB13183

htmltitle.cppH A D23-May-20236.3 KiB297167

http-options.cH A D27-Feb-20241.9 KiB6020

http-post.cH A D04-Aug-20242 KiB6220

http2-download.cH A D19-Sep-20246.1 KiB231146

http2-pushinmemory.cH A D28-May-20245 KiB187104

http2-serverpush.cH A D20-Sep-20247.2 KiB274172

http2-upload.cH A D31-Oct-20248.7 KiB327221

http3-present.cH A D03-Jan-20231.6 KiB5016

http3.cH A D27-Feb-20241.7 KiB5619

httpcustomheader.cH A D03-Jan-20232.3 KiB7325

httpput-postfields.cH A D04-Aug-20243.4 KiB10639

httpput.cH A D04-Aug-20243.6 KiB12448

https.cH A D27-Feb-20242.7 KiB8426

imap-append.cH A D27-Feb-20243.7 KiB13168

imap-authzid.cH A D27-Feb-20242.2 KiB7422

imap-copy.cH A D27-Feb-20242.3 KiB7420

imap-create.cH A D03-Jan-20232.1 KiB7020

imap-delete.cH A D03-Jan-20232.1 KiB7020

imap-examine.cH A D03-Jan-20232.1 KiB7020

imap-fetch.cH A D27-Feb-20241.9 KiB6820

imap-list.cH A D27-Feb-20242.1 KiB6919

imap-lsub.cH A D07-Sep-20232.1 KiB7120

imap-multi.cH A D27-Feb-20242.3 KiB8432

imap-noop.cH A D03-Jan-20232 KiB7020

imap-search.cH A D03-Jan-20232.3 KiB7420

imap-ssl.cH A D27-Feb-20243.2 KiB9527

imap-store.cH A D03-Jan-20232.7 KiB8527

imap-tls.cH A D27-Feb-20243.5 KiB9523

interface.cH A D30-Oct-20231.7 KiB5315

ipv6.cH A D10-Jan-20241.4 KiB4915

keepalive.cH A D12-Jun-20241.8 KiB5918

localport.cH A D27-Feb-20241.7 KiB5416

maxconnects.cH A D27-Feb-20242 KiB6728

multi-app.cH A D19-Sep-20243.4 KiB11654

multi-debugcallback.cH A D19-Sep-20244.1 KiB16293

multi-double.cH A D28-May-20242.6 KiB9440

multi-event.cH A D27-Feb-20246 KiB242165

multi-formadd.cH A D21-Sep-20243.5 KiB12156

multi-legacy.cH A D19-Sep-20245.2 KiB18398

multi-post.cH A D28-May-20243 KiB10545

multi-single.cH A D28-May-20242.2 KiB8128

multi-uv.cH A D27-Jul-20246.8 KiB255170

multithread.cH A D19-Sep-20242.6 KiB9741

netrc.cH A D10-Jan-20241.5 KiB5017

parseurl.cH A D27-Feb-20242.1 KiB8139

persistent.cH A D28-May-20242.1 KiB7125

pop3-authzid.cH A D27-Feb-20242.2 KiB7321

pop3-dele.cH A D03-Jan-20232.1 KiB7321

pop3-list.cH A D27-Feb-20241.9 KiB6719

pop3-multi.cH A D27-Feb-20242.3 KiB8532

pop3-noop.cH A D03-Jan-20232.1 KiB7321

pop3-retr.cH A D27-Feb-20241.9 KiB6719

pop3-ssl.cH A D27-Feb-20243.2 KiB9426

pop3-stat.cH A D03-Jan-20232.1 KiB7321

pop3-tls.cH A D27-Feb-20243.5 KiB9422

pop3-top.cH A D03-Jan-20232.1 KiB7020

pop3-uidl.cH A D03-Jan-20232 KiB7020

post-callback.cH A D04-Aug-20245.2 KiB15774

postinmemory.cH A D27-Feb-20243.4 KiB11455

postit2-formadd.cH A D21-Sep-20243.8 KiB12050

postit2.cH A D27-Feb-20243.4 KiB10539

progressfunc.cH A D03-Jan-20233.1 KiB9849

protofeats.cH A D18-Apr-20231.6 KiB5320

range.cH A D27-Feb-20241.4 KiB4614

resolve.cH A D27-Feb-20241.9 KiB5918

rtsp-options.cH A D27-Feb-20241.7 KiB5619

sendrecv.cH A D20-Sep-20245 KiB178101

sepheaders.cH A D28-May-20242.7 KiB9639

sessioninfo.cH A D03-Jan-20233.1 KiB11360

sftpget.cH A D27-Feb-20243.3 KiB11348

sftpuploadresume.cH A D03-Jan-20233.8 KiB13883

shared-connection-cache.cH A D27-Feb-20242.5 KiB8842

simple.cH A D27-Feb-20241.7 KiB5418

simplepost.cH A D27-Feb-20241.8 KiB5921

simplessl.cH A D20-Sep-20244.7 KiB15165

smooth-gtk-thread.cH A D27-Feb-20245.8 KiB219125

smtp-authzid.cH A D27-Feb-20245.3 KiB16372

smtp-expn.cH A D27-Feb-20242.5 KiB8223

smtp-mail.cH A D27-Feb-20244.9 KiB15169

smtp-mime.cH A D27-Feb-20245.6 KiB16976

smtp-multi.cH A D27-Feb-20244.6 KiB15477

smtp-ssl.cH A D27-Feb-20245.8 KiB17175

smtp-tls.cH A D27-Feb-20246.2 KiB17471

smtp-vrfy.cH A D27-Feb-20242.6 KiB8222

sslbackend.cH A D21-Sep-20232.3 KiB8034

synctime.cH A D19-Sep-202412.6 KiB378232

threaded-ssl.cH A D19-Sep-20243.2 KiB10045

unixsocket.cH A D04-Aug-20242 KiB6827

url2file.cH A D28-May-20242.4 KiB8833

urlapi.cH A D18-Jun-20232.1 KiB7834

usercertinmem.cH A D12-Jul-20248.9 KiB228152

version-check.plH A D03-Jan-20232.7 KiB10645

websocket-cb.cH A D27-Feb-20242.1 KiB6931

websocket.cH A D26-May-20243.5 KiB13590

xmlstream.cH A D28-May-20244.9 KiB168102

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