Hi,

i am new to HttpClient, so it might be a simply question to somebody.

i want to send some serializeable data(not only some String) to the server
per PostMethod, so i do following at client side:
Hashtable table = new Hashtable();
table.put("name", "XXX");
table.put("RequestObject", serializeableObject );
        
byte[] buf = SerializationUtils.serialize(table);
PostMethod.setRequestEntity(entity);
client.executeMethod(PostMethod);

and at the server side:
byte[] buf = new byte[servletRequest.getContentLength()];
servletRequest.getInputStream().read(buf); 
Hashtable table = (Hashtable) SerializationUtils.deserialize(buf);

in this way i can not get the Hashtable again at server side. Logging
message shows that everytime there is always a different content received
from client than the original hashtable made by client. i can not get the
right content from request entity made by client.

could anyone please help me?

thanks and regards
-- 
View this message in context: 
http://www.nabble.com/Problem-by-getting-request-entity-on-server-side-tf4284936.html#a12197385
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to