mirror of
https://github.com/curl/curl.git
synced 2026-05-30 23:17:32 +03:00
Added curl_global_* functions.
This commit is contained in:
parent
1c4663bc42
commit
be795f90da
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,10 @@ int main(void)
|
|||
CURL *curl;
|
||||
CURLcode res;
|
||||
|
||||
/* In windows, this will init the winsock stuff */
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
|
||||
/* get a curl handle */
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
/* First set the URL that is about to receive our POST. This URL can
|
||||
|
|
@ -46,5 +50,6 @@ int main(void)
|
|||
/* always cleanup */
|
||||
curl_easy_cleanup(curl);
|
||||
}
|
||||
curl_global_cleanup();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue