Hello, i installed curl for do some web request but when im running the code im getting an error and i dont know how to fix it (i asked to chat gpt)
(i copied a code from chat gpt to test)
#include <stdio.h>
#include </Curl/curl.h>
//#include </Curl/types.h>
//#include </Curl/easy.h>
int main() {
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
// Set the data to send
char *data = "name=value";
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
// Perform the request
res = curl_easy_perform(curl);
if (res != CURLE_OK) {
fprintf(stderr, "curl_easy_perform() failed: %s\n",
curl_easy_strerror(res));
}
// Clean up
curl_easy_cleanup(curl);
}
return 0;
}
Thanks if you are gonna help me
