Use BufferedReader to read the request response

It seems to be more common in Java, and it's more readable.