Do not use POST method 21/306421/1 accepted/tizen_unified_toolchain accepted/tizen/unified/20240222.163401 accepted/tizen/unified/toolchain/20240311.064843 accepted/tizen/unified/x/20240225.131833
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 21 Feb 2024 07:13:14 +0000 (16:13 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 21 Feb 2024 07:13:14 +0000 (16:13 +0900)
Change-Id: Ia193d9b79b810c1066582fab8f14aac4a5ae9327

agent/download-agent-plugin-libcurl.c

index fb799f2..e8a303d 100755 (executable)
@@ -460,7 +460,6 @@ da_ret_t PI_http_start(da_info_t *da_info)
        char *url = DA_NULL;
        http_info_t *http_info = DA_NULL;
        long http_status = 0;
-       struct curl_httppost* post = NULL;
        struct curl_slist *headers = DA_NULL;
        char err_buffer[CURL_ERROR_SIZE] = {0,};
        int disable_verify_host = 0;
@@ -508,8 +507,7 @@ da_ret_t PI_http_start(da_info_t *da_info)
                curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);
                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_MIMEPOST, post);
+               // FIXME later : If the post method is supprot, the post data should be set with curl_mime
                DA_LOGI("Need more information for post filed");
                break;
        case HTTP_METHOD_HEAD: