commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: HTTPClient Feature Patch
Date Mon, 24 Feb 2003 18:36:17 GMT
Thoralf Rickert wrote:
> But what about the #setRequestBody(String body) method. OK, I could use a
>     ProgressInputStream(new ByteArrayInputStream(body.getBytes()))
> as the body.

Note: You should use the String.getBytes(String) method to specify an 
encoding. Otherwise your code will not be portable to some platforms.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message