#include <curl/curl.h>
int main(void) {
CURL *curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://api.gugudata.com/ai/gaokao/chat?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, "prompt=%e6%a0%b9%e6%8d%ae%e3%80%8a%e8%8b%8f%e5%b7%9e%e5%a4%a7%e5%ad%a62026%e5%b9%b4%e5%85%a8%e6%97%a5%e5%88%b6%e6%99%ae%e9%80%9a%e6%9c%ac%e7%a7%91%e6%8b%9b%e7%94%9f%e7%ab%a0%e7%a8%8b%e3%80%8b%ef%bc%8c%e6%99%ae%e9%80%9a%e7%b1%bb%e4%b8%93%e4%b8%9a%e5%af%b9%e8%bf%9b%e6%a1%a3%e8%80%83%e7%94%9f%e6%8c%89%e4%bb%80%e4%b9%88%e5%8e%9f%e5%88%99%e8%bf%9b%e8%a1%8c%e4%b8%93%e4%b8%9a%e5%bd%95%e5%8f%96%ef%bc%8c%e5%90%84%e4%b8%93%e4%b8%9a%e5%bf%97%e6%84%bf%e4%b9%8b%e9%97%b4%e6%98%af%e5%90%a6%e8%ae%be%e7%bd%ae%e5%88%86%e6%95%b0%e7%ba%a7%e5%b7%ae%ef%bc%9f%e8%af%b7%e7%bb%99%e5%87%ba%e5%ae%98%e6%96%b9%e7%ab%a0%e7%a8%8b%e5%8e%9f%e6%96%87%e9%93%be%e6%8e%a5%e3%80%82&session_id=&streaming=false");
CURLcode res = curl_easy_perform(curl);
(void)res;
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
}
return 0;
}