#include <curl/curl.h>
int main(void) {
CURL *curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://api.gugudata.com/text/nlpabstract?appkey=YOUR_APPKEY");
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Content-Type: application/x-www-form-urlencoded");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "content=%e5%92%95%e5%92%95%e6%95%b0%e6%8d%ae%e6%8f%90%e4%be%9b%e6%95%b0%e6%8d%ae%e6%8e%a5%e5%8f%a3%e6%9c%8d%e5%8a%a1%e3%80%82%e5%bc%80%e5%8f%91%e8%80%85%e5%8f%af%e4%bb%a5%e6%9f%a5%e8%af%a2%e6%8e%a5%e5%8f%a3%e6%96%87%e6%a1%a3%e3%80%82%e5%9b%a2%e9%98%9f%e4%bd%bf%e7%94%a8%e8%87%aa%e5%8a%a8%e5%8c%96%e6%b5%8b%e8%af%95%e9%aa%8c%e8%af%81%e6%8e%a5%e5%8f%a3%e3%80%82%e6%8e%a5%e5%8f%a3%e8%bf%94%e5%9b%9e%e5%85%b3%e9%94%ae%e8%af%8d%e5%92%8c%e6%91%98%e8%a6%81%e5%8f%a5%e5%ad%90%e3%80%82");
CURLcode res = curl_easy_perform(curl);
(void)res;
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
}
return 0;
}