Modify CURLOPT_HTTPPOST to CURLOPT_MIMEPOST 47/306347/1 accepted/tizen/unified/20240221.062940 accepted/tizen/unified/x/20240220.150105
authorwchang kim <wchang.kim@samsung.com>
Tue, 20 Feb 2024 11:04:00 +0000 (20:04 +0900)
committerwchang kim <wchang.kim@samsung.com>
Tue, 20 Feb 2024 11:04:00 +0000 (20:04 +0900)
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

index c4dd69a..fb799f2 100755 (executable)
@@ -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: