((HttpURLConnection) connection).setRequestMethod("PUT");
  public void sendData(String s) throws IOException {    PrintWriter pw = new PrintWriter(connection.getOutputStream());    pw.println(s);    pw.flush();  }