Source Code File 07-01_verbose.c
#include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>
int main()
{
CURL *curl;
char url[] =
"https://c-for-dummies.com/curl_test.txt";
/* initialize easy curl */
curl = curl_easy_init();
if(curl)
{
curl_easy_setopt(curl,
CURLOPT_VERBOSE, 1L);
curl_easy_setopt(curl,
CURLOPT_URL, url);
curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return(0);
}
Notes
* Wide version of this code (statements not split)
Copyright © 1997-2024 by QPBC.
All rights reserved