HttpResponse.getEntity().getContent() returns everything… including response headers, javascript code, response body (of course!) etc.
Is there a function that cleans this up and provides only the response body?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to read the data from the InputStream to a buffer. Search for this regex:
This will give you the things after the header.
Or you can replace it with an empty string, if you are searching for: