title: How to send Request payload to REST API in java?
body: <p>I want to retrieve the JSON data from the following:
  <a href="https://git.eclipse.org/r/#/c/11376/" rel="noreferrer">https://git.eclipse.org/r/#/c/11376/</a></p>
  
  <p>Request URL: <code>https://git.eclipse.org/r/gerrit/rpc/ChangeDetailService</code></p>
  
  <p>Request Method: <code>POST</code></p>
  
  <p>Request Headers:</p>
  
  <pre><code>Accept:application/json
  
  Content-Type:application/json; charset=UTF-8
  </code></pre>
  
  <p>Request Payload:</p>
  
  <pre><code>{"jsonrpc":"2.0","method":"changeDetail","params":[{"id":11376}],"id":1}
  </code></pre>
  
  <p>I already tried <a href="https://stackoverflow.com/questions/13396171/send-http-post-payload-with-java"> this answer </a> but I am getting <code>400 BAD REQUEST</code>.</p>
  
  <p>Can anyone help me sort this out?</p>
  
  <p>Thanks.</p>