aspose file tools*
The moose likes Other Open Source Projects and the fly likes send post request with HttpClient and use servlet to display the request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "send post request with HttpClient and use servlet to display the request" Watch "send post request with HttpClient and use servlet to display the request" New topic
Author

send post request with HttpClient and use servlet to display the request

Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 42

Hello i am sending a post message using a HttpClient. But i dont see the request in my servlet. I am sure this method is fine, i used it before. I tried with another method too.
Java code:
Method 1:

Method 2:


Servlet code:

Also, when i submit the "message" from input button (html) the request message is displayed fine, is not null:
html code:


What is wrong in my servlet code? I really need help to know what is wrong.


Life is not measured by the number of breaths we take, but by the moments that take our breath away.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: send post request with HttpClient and use servlet to display the request