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