From: wchang kim Date: Tue, 20 Feb 2024 11:04:00 +0000 (+0900) Subject: Modify CURLOPT_HTTPPOST to CURLOPT_MIMEPOST X-Git-Tag: accepted/tizen/unified/x/20240220.150105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2Fx%2F20240220.150105;p=platform%2Fframework%2Fweb%2Fdownload-provider.git 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 --- 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: