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: garbage in responsebody
Date Mon, 26 Jun 2006 12:53:01 GMT
sANTo wrote:

> Any ideas where the garbage in responsebody comes from ?

It comes from your *serializing* a string instead of writing
it as text. I suggest you deserialize the data on the client
to get back a string object. Or else you remove the usage of
ObjectOutputStream on the server side in favor of writing text
to a plain OutputStream or preferably to a Writer. By the way,
setting the Content-Type to text/xml while you're actually
sending binary serialized objects is tight.

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