Well, my php file includes simple code <?php echo “hello there” ?> Whenever I try read the file using HttpURLConnection.getInputStream(); it returns All I want is to just read the raw file.. only “hello there” .. not anything else.. how to do that ? Answer The question is old and has been solved long ago. But here is something for