Hi Micky,

Otherwise, when I use StringEntity or ByteArrayEntity to wrap the string
and put it into HttpEntity (by HttpPost.setEntity()), the server can't get
the string use request.getReader() nor request.getInputStream().

What _do_ you get at the server via Reader/InputStream?
What is the Content-Type header you are sending? Do you
try to get parameters from the request before reading?

While you're still experimenting, use StringEntity to
send the string, use Content-Type "text/plain" and add
the charset if it's a non-ASCII string. Something like

Content-Type: text/plain; charset=UTF-8

That should prevent the servlet container from accessing
the content to read parameters, and it should be enough
to avoid charset conversion exceptions in a Reader.

good luck,
  Roland


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

Reply via email to