Hello Sheetal, > Please Could anybody tell me how can I write objects to server using > HttpClient. > Is it retrieved accordingly from servet. as getInputStream and read.
You write objects in the very same way as you send any other kind of data to an HTTP server. Use a PostMethod or PutMethod with an appropriate RequestEntity. We don't have any predefined entities for object serialization, so you just implement a new one using ObjectOutputStream. http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/PostMethod.html http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/PutMethod.html http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/RequestEntity.html http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
