Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

http components - http client - getResponseBodyAsString  RSS feed

 
Miran Cvenkel
Ranch Hand
Posts: 208
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http client
If the response is known to be a String, you can use the getResponseBodyAsString method which will automatically use the encoding specified in the Content-Type header or ISO-8859-1 if no charset is specified.


download the latest 4.3.5 version fom there, incorporated into my app.

Ok, there is a sample, outdated so it does no work: sample

Is that (getResponseBodyAsString) even there any more ?

Can't find any sample that would be using that ...
 
Vijitha Kumara
Saloon Keeper
Posts: 3999
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could check what's available in latest version from the API.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!