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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 40

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send post request with HttpClient and use servlet to display the request
 
Similar Threads
getParameter in jsp file sent by HttpClient
Reg Manual Creation of new Topics -
Problem in receiving data in servlet from android client?
Post the data to Server
How to post data from android app to php page