Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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
Boost this thread!