code: @Override
      public void prepare() throws HibiscusException {
  
          HttpEntityEnclosingRequestBase request = (HttpEntityEnclosingRequestBase) this.httpRequest;
  
          try {
              request.setURI(getURI());
  
              for (BasicNameValuePair header : httpClient.getRequestHeaders()) {
                  request.addHeader(header.getName(), header.getValue());
              }
  
          } catch (URISyntaxException e1) {
              throw new HibiscusException(e1);
          }
  
          final String requestBody = httpClient.getRequestBody();
          final int contentLength  = (null != requestBody) ? requestBody.length() : 0;
  
           if (contentLength > 0) {
               try {
                  request.setEntity(new StringEntity(requestBody, httpClient.getEncoding()));
              } catch (UnsupportedEncodingException e2) {
                  throw new HibiscusException("The encoding " + httpClient.getEncoding() + " is not supported", e2);
              }
           }
      }
docs: {@inheritDoc}