• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.gitignoreD22-Nov-2023777 7675

10-at-a-time.cD22-Nov-20235.1 KiB197145

Makefile.amD22-Nov-20232.2 KiB6419

Makefile.exampleD22-Nov-20231.9 KiB5410

Makefile.incD22-Nov-20232.4 KiB4417

Makefile.m32D22-Nov-20237.6 KiB298228

Makefile.netwareD22-Nov-202310.8 KiB435342

READMED22-Nov-20234 KiB8371

adddocsref.plD22-Nov-2023874 3628

anyauthput.cD22-Nov-20235 KiB18696

asiohiper.cppD22-Nov-202312.6 KiB468307

cacertinmem.cD22-Nov-20236.7 KiB15698

certinfo.cD22-Nov-20232.3 KiB8744

chkspeed.cD22-Nov-20236.1 KiB191117

cookie_interface.cD22-Nov-20233.9 KiB13085

curlgtk.cD22-Nov-20232.9 KiB10772

curlx.cD22-Nov-202315.7 KiB514308

debug.cD22-Nov-20234 KiB14898

evhiperfifo.cD22-Nov-202311.8 KiB442304

externalsocket.cD22-Nov-20234.4 KiB15492

fileupload.cD22-Nov-20232.6 KiB8742

fopen.cD22-Nov-202313.6 KiB543338

ftp-wildcard.cD22-Nov-20234.1 KiB14988

ftpget.cD22-Nov-20232.8 KiB9543

ftpgetinfo.cD22-Nov-20232.9 KiB9043

ftpgetresp.cD22-Nov-20232.5 KiB7732

ftpsget.cD22-Nov-20233.1 KiB10245

ftpupload.cD22-Nov-20234.5 KiB14165

ftpuploadresume.cD22-Nov-20234.7 KiB17590

getinfo.cD22-Nov-20231.8 KiB5420

getinmemory.cD22-Nov-20233.2 KiB11649

ghiper.cD22-Nov-202311.7 KiB452294

hiperfifo.cD22-Nov-202311.6 KiB436292

href_extractor.cD22-Nov-20232.6 KiB8743

htmltidy.cD22-Nov-20234 KiB13185

htmltitle.cppD22-Nov-20236.2 KiB314177

http-post.cD22-Nov-20231.9 KiB5620

http2-download.cD22-Nov-20237.6 KiB289181

http2-upload.cD22-Nov-20239.3 KiB353227

httpcustomheader.cD22-Nov-20232.2 KiB6725

httpput.cD22-Nov-20233.6 KiB12148

https.cD22-Nov-20232.5 KiB7525

imap-append.cD22-Nov-20233.5 KiB11761

imap-copy.cD22-Nov-20232.3 KiB6620

imap-create.cD22-Nov-20232 KiB6220

imap-delete.cD22-Nov-20232 KiB6220

imap-examine.cD22-Nov-20232 KiB6220

imap-fetch.cD22-Nov-20231.9 KiB5919

imap-list.cD22-Nov-20232 KiB6119

imap-lsub.cD22-Nov-20232 KiB6320

imap-multi.cD22-Nov-20234.7 KiB16894

imap-noop.cD22-Nov-20231.9 KiB6220

imap-search.cD22-Nov-20232.3 KiB6620

imap-ssl.cD22-Nov-20233.2 KiB8626

imap-store.cD22-Nov-20232.6 KiB7727

imap-tls.cD22-Nov-20233.4 KiB8522

makefile.djD22-Nov-20231.7 KiB6121

multi-app.cD22-Nov-20235.1 KiB17597

multi-debugcallback.cD22-Nov-20236 KiB227140

multi-double.cD22-Nov-20233.9 KiB14173

multi-post.cD22-Nov-20235.1 KiB17096

multi-single.cD22-Nov-20233.1 KiB11049

multi-uv.cD22-Nov-20235.9 KiB231156

multithread.cD22-Nov-20232.6 KiB9441

opensslthreadlock.cD22-Nov-20232.7 KiB9550

persistant.cD22-Nov-20232.1 KiB6526

pop3-dele.cD22-Nov-20232.1 KiB6521

pop3-list.cD22-Nov-20231.9 KiB5919

pop3-multi.cD22-Nov-20234.7 KiB16894

pop3-noop.cD22-Nov-20232 KiB6521

pop3-retr.cD22-Nov-20231.9 KiB5919

pop3-ssl.cD22-Nov-20233.2 KiB8626

pop3-stat.cD22-Nov-20232.1 KiB6521

pop3-tls.cD22-Nov-20233.4 KiB8522

pop3-top.cD22-Nov-20232 KiB6220

pop3-uidl.cD22-Nov-20231.9 KiB6220

post-callback.cD22-Nov-20234.7 KiB14466

postinmemory.cD22-Nov-20233.3 KiB11154

postit2.cD22-Nov-20233.5 KiB10444

progressfunc.cD22-Nov-20233.9 KiB12062

resolve.cD22-Nov-20231.8 KiB5218

rtsp.cD22-Nov-20238.3 KiB272189

sampleconv.cD22-Nov-20233.3 KiB10859

sendrecv.cD22-Nov-20233.6 KiB13678

sepheaders.cD22-Nov-20232.6 KiB9140

sessioninfo.cD22-Nov-20233 KiB10659

sftpget.cD22-Nov-20233.2 KiB10748

simple.cD22-Nov-20231.6 KiB4818

simplepost.cD22-Nov-20231.8 KiB5421

simplessl.cD22-Nov-20234.5 KiB13962

smooth-gtk-thread.cD22-Nov-20236.1 KiB229127

smtp-expn.cD22-Nov-20232.5 KiB7423

smtp-mail.cD22-Nov-20234.7 KiB13865

smtp-multi.cD22-Nov-20236.9 KiB238139

smtp-ssl.cD22-Nov-20235.6 KiB16274

smtp-tls.cD22-Nov-20236.1 KiB16470

smtp-vrfy.cD22-Nov-20232.5 KiB7422

synctime.cD22-Nov-202312.4 KiB368232

threaded-ssl.cD22-Nov-20234.2 KiB16398

url2file.cD22-Nov-20232.3 KiB8133

usercertinmem.cD22-Nov-20239 KiB225152

version-check.plD22-Nov-20232.6 KiB10645

xmlstream.cD22-Nov-20234.8 KiB15998

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