Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdbool.h>
- #include <string.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <curl/curl.h>
- int main(void) {
- curl_global_init(CURL_GLOBAL_WIN32|CURL_GLOBAL_SSL);
- CURL* handle = curl_easy_init();
- curl_easy_setopt(handle, CURLOPT_VERBOSE, true);
- curl_easy_setopt(handle, CURLOPT_URL, "https://ifconfig.me/ip");
- curl_easy_perform(handle);
- putchar('\n');
- curl_global_cleanup();
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment