title: How to send simple http post request with post parameters in java
body: <p>I need a simple code example of sending http post request with post parameters that I get from form inputs. 
  I have found Apache HTTPClient, it has very reach API and lots of sophisticated examples, but I couldn't find a simple example of sending http post request with input parameters and getting text response.</p>
  
  <p><strong>Update:</strong> I'm interested in Apache HTTPClient v.4.x, as 3.x is deprecated.</p>