On Fri, 2012-05-25 at 14:52 +0200, michael.fankanow...@t-systems.com wrote: > Hi all, > > I receive a NullPointerException when I'm doing this: > > HttpPost method = new HttpPost(someUri); > ContentType ct = ContentType.create("text/xml"); > StringEntity entity = new StringEntity(someString, ct); > method.setEntity(entity); > > The javadoc says that parameter charset is optional for ContentType but it > seems not for StringEntity. > I have the requirement to send a http post with content-type: text/xml in the > http header but without a charset. Do I create the HttpPost in a wrong manner > or does the requirement make no sense or is it a bug? > > Kind regards, > > Michael
This is a known regression. Please either upgrade HttpCore to the latest snapshot (4.2.1-SNAPSHOT) or use an explicit charset parameter for now. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org