31 retcode =
fread(ptr, size, nmemb, stream);
33 fprintf(stderr,
"*** We read %d bytes from file\n", retcode);
38 int main(
int argc,
char **argv)
45 struct stat file_info;
58 fstat(hd, &file_info);
64 hd_src = fopen(file,
"rb");
CURLcode curl_global_init(long flags)
Globally initializes cURL given a bitwise set of the different features to initialize.
CURLcode curl_easy_perform(CURL *curl)
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
void curl_global_cleanup(void)
Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and ...
int main(int argc, char **argv)
size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
void curl_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)