21 int written =
fwrite(ptr, size, nmemb, (FILE *)stream);
25 int main(
int argc,
char **argv)
28 char *headerfilename =
"head.out";
30 char *bodyfilename =
"body.out";
51 headerfile = fopen(headerfilename,
"w");
52 if (headerfile ==
NULL) {
56 bodyfile = fopen(bodyfilename,
"w");
57 if (bodyfile ==
NULL) {
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_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)