From dbf85c5c8e0617552cc99edefd0f004fe7c14a93 Mon Sep 17 00:00:00 2001 From: wchang kim Date: Tue, 20 Feb 2024 20:04:00 +0900 Subject: [PATCH] Modify CURLOPT_HTTPPOST to CURLOPT_MIMEPOST Since CURLOPT_HTTPPOST is deprecated option in libcurl, build error occured in Tizen-Unified-X environment. According to the documentation of libcurl, CURLOPT_HTTPPOST is replaced by CURLOPT_MIMEPOST. Change-Id: I9717a27967c171dc6609e55fcc6470e4c9c21400 --- agent/download-agent-plugin-libcurl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/download-agent-plugin-libcurl.c b/agent/download-agent-plugin-libcurl.c index c4dd69a..fb799f2 100755 --- a/agent/download-agent-plugin-libcurl.c +++ b/agent/download-agent-plugin-libcurl.c @@ -509,7 +509,7 @@ da_ret_t PI_http_start(da_info_t *da_info) break; case HTTP_METHOD_POST: // FIXME later : If the post method is supprot, the post data should be set with curl_fromadd - curl_easy_setopt(curl, CURLOPT_HTTPPOST, post); + curl_easy_setopt(curl, CURLOPT_MIMEPOST, post); DA_LOGI("Need more information for post filed"); break; case HTTP_METHOD_HEAD: -- 2.7.4