Android implementation for RunHTTPRequest() with C++ and Java unit tests.

... 
You surely can code it up without the ```break```, by keeping count of totalBytesRead and totalBytesExpected. As a nice bonus, you could only read ```min(STREAM_BUFFER_SIZE, totalBytesExpected - totalBytesRead)``` each time.