hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: Mutlipart
Date Fri, 10 Mar 2006 19:07:34 GMT
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: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message