docs: private void copyBodyFromClient(HttpServletRequest pRequest, HttpURLConnection pRemoteConnection) throws IOException {
          // If this is a POST or PUT, copy message body from client remote server
          if (!("POST".equals(pRequest.getMethod()) || "PUT".equals(pRequest.getMethod()))) {
              return;
          }
  
          // NOTE: Setting doOutput to true, will make it a POST request (why?)...
          pRemoteConnection.setDoOutput(true);
  
          // Get streams and do the copying
          InputStream fromClient = null;
          OutputStream toRemote = null;
          try {
              fromClient = pRequest.getInputStream();
              toRemote = pRemoteConnection.getOutputStream();
              FileUtil.copy(fromClient, toRemote);
          }
          finally {
              if (fromClient != null) {
                  try {
                      fromClient.close();
                  }
                  catch (IOException e) {
                      log("Stream from client could not be closed.", e);
                  }
              }
              if (toRemote != null) {
                  try {
                      toRemote.close();
                  }
                  catch (IOException e) {
                      log("Stream to remote could not be closed.", e);
                  }
              }
          }
      }