Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic