サーバーにCSVファイルのコンテンツをアップロードしようとしています。私は次のコードを試したアンドロイドアプリを使用してCSVコンテンツをサーバーに送信する方法
// CSV file
File sourceFile = new File(path,fileName);
// Https "PUT" Request
URL myurl = new URL(upload_url);
HttpsURLConnection con = (HttpsURLConnection) myurl.openConnection();
con.setDefaultSSLSocketFactory(new NoSSLv3Factory());
con.setRequestMethod("PUT");
con.setRequestProperty("Content-Type", "text/csv");
con.setDoOutput(true);
con.setUseCaches(false);
しかし、PUT要求にCSVファイルの内容を追加する方法。