code: public ClientResponse getPostResponse(String queryUrl, String params,
        TokenResult token, Object pFormDataObject) throws Exception {
      params = params.replace("|", "%7C");
      params = params.replace("+", "%20");  
      // modal handling of post
      FormDataMultiPart form = null;
      MultivaluedMap<String, String> lFormData = null;
      if (pFormDataObject instanceof FormDataMultiPart) {
        form = (FormDataMultiPart) pFormDataObject;
      } else {
        @SuppressWarnings("unchecked")
        Map<String, String> pFormData = (Map<String, String>) pFormDataObject;
        lFormData = new MultivaluedMapImpl();
        if (pFormData != null) {
          for (String key : pFormData.keySet()) {
            lFormData.add(key, pFormData.get(key));
          }
        }
      }
      if (token != null) {
        switch (token.tokenMode) {
        case token1_24:
          if (lFormData != null) {
            lFormData.add(token.tokenName, token.token);
          } else {
            form.field(token.tokenName, token.token);
          }
          break;
        default:
          params += token.asParam();
        }
      }
      Builder resource = getResource(queryUrl + params);
      // FIXME allow to specify content type (not needed for Mediawiki itself
      // but
      // could be good for interfacing )
      ClientResponse response = null;
      if (lFormData != null) {
        response = resource.type(MediaType.APPLICATION_FORM_URLENCODED_TYPE)
            .post(ClientResponse.class, lFormData);
      } else {
        response = resource.type(MediaType.MULTIPART_FORM_DATA_TYPE)
            .post(ClientResponse.class, form);
      }
      return response;
    }
docs: get a Post response
  
  @param queryUrl
  @param params
  - direct query parameters
  @param token
  - a token if any
  @param pFormData
  - the form data - either as multipart of urlencoded
  @return - the client Response
  @throws Exception