libcurl-video-tutorials

Video tutorials for how to write internet clients using libcurl

View on GitHub

prev: setup table of contents next: simplest

Video

Youtube: libcurl video tutorial: global

global init and cleanup

Before any libcurl functions are invoked, you should call curl_global_init() and once all libcurl usage is done, call the corresponding curl_global_cleanup().

The mycurlapp.c example here shows it get done with the CURL_GLOBAL_ALL argument, which inits as much as possible.

setup

Using the Makefile from the setup episode, we build the program and test it.