title: Java HTTP DELETE with Request Body
body: <p>I have an external API which uses DELETE with the body(JSON). I make use of Postman REST Client and get the delete done with request body and it works fine. I am trying to automate this functionality using a method.</p>
  
  <p>I tried HttpURLConnection for similar GET, POST and PUT. But I am not sure how to use the DELETE with a request body.</p>
  
  <p>I have checked in StackOverflow and see this cannot be done, but they are very old answers.</p>
  
  <p>Can someone please help? I'm using spring framework.</p>