Question: 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.

**Update:** I'm interested in Apache HTTPClient v.4.x, as 3.x is deprecated.

Answer: 
<http://httpunit.sourceforge.net/doc/cookbook.html>
use PostMethodWebRequest and setParameter method
shows a very simple exapmle where you do post from Html page, servlet processes it and sends a text response..

<http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/servlet.html>