Ich versuche CSV-Datei Inhalte auf den Server zu laden. Ich habe versucht, Code folgendenSo senden CSV-Inhalte an Server mit Android-App
// 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);
Aber wie CSV-Datei Inhalt hinzufügen Anfrage zu setzen.