Added Apache Commons IO library. Simplifed the read from the HTTP connection. .available() may not always return the correct number of bytes. It depends upon the underlying TCP stack. So rather than assume .available() will return the exact number of bytes we can utilize the Apache Commons IO library to read the entire stream into the supplied string.