title: How can i output to console my request's body
body: <p>Can't output to console "POST" requests body</p>
  
  <pre><code>HttpClient client= HttpClientBuilder.create().build();
  HttpPost request=new HttpPost("https://reqres.in/api/register");
   List&lt;NameValuePair&gt; params= new ArrayList&lt;NameValuePair&gt;();
      params.add(new BasicNameValuePair("email","eve.holt@reqres.in"));
      params.add(new BasicNameValuePair("password","pistol"));
      request.setEntity(new UrlEncodedFormEntity(params));
  HttpResponse response = client.execute(request);
  </code></pre>
  
  <p>I want to see the body of requests(email, password).</p>
  
  <p>I've tried
      System.out.println(request.getEntity())
  but it's not exactly same
  thx</p>