Read the libcurl manual/tutorials.