title: Java code for curl request
body: <p>I'm desperate to find answer myself so I need external help.</p>
  
  <p>Need a java code, which done exactly this:
  <strong>curl --data "username=&amp;password=&amp;submit=Login" -v </strong></p>
  
  <p>This is POST request to URL with data, which returns HEADERs, both sent and received.</p>
  
  <p>Please advise! Thanks in advance!</p>