public static void postData(String url, JSONObject obj) throws IOException {
		URL posturl = new URL(url);
		HttpURLConnection con;
		if (ApiProperties.get().getUrl().contains("https")) {
			setupConnection();
			con = (HttpsURLConnection) posturl.openConnection();
		} else {
			con = (HttpURLConnection) posturl.openConnection();
		}
		JSONObject.testValidity(obj); // testet ob valides JSON
		con.setRequestMethod("POST"); // setzt PostMethode
		con.setDoOutput(true); // ermöglicht Transferinput
		con.setConnectTimeout(10000);
		con.setReadTimeout(10000);
		con.setUseCaches(false);
		con.setRequestProperty("Content-Type", "application/json"); // setzt den
																	// type auf
																	// json
		con.connect();

		OutputStream out = con.getOutputStream();
		try {
			OutputStreamWriter wr = new OutputStreamWriter(out);
			wr.write(obj.toString());
			wr.flush();
			wr.close();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (out != null)
				out.close();
		}
		if (con.getResponseCode() == 200) {
			// UI.throwPopup("Produktname erfolgreich geändert",JOptionPane.INFORMATION_MESSAGE);
		}
		con.disconnect(); // Disconnect
		// ApiCsvDaemon.requestProduct(); //aktualisiere Produktanzeige
	}