File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: reuse of HTTP connection with POST method