This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Servlets and the fly likes reuse of HTTP connection with POST method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "reuse of HTTP connection with POST method" Watch "reuse of HTTP connection with POST method" New topic
Author

reuse of HTTP connection with POST method

jing zhang
Greenhorn

Joined: Dec 06, 2002
Posts: 2
I open an HTTP connection from the MIDLet to a Severlet once. And I want to use this connection to exchange several messagges between before I close the connection.
I have a send method which open and close the inputStream when a message is sent, and also a read method in the MIDLet to get the response.
I have a normal Servlet with doPost method inside.
It seems only the first message sent right after the connection setup can arrive at the Servlet, not any of the following messages.
Does anybody here have some experience about this?
I am listening for your advice.
jing zhang
Greenhorn

Joined: Dec 06, 2002
Posts: 2
is what i think impossible? :roll:
 
Have you checked out Aspose?
 
subject: reuse of HTTP connection with POST method
 
It's not a secret anymore!