Those aren't random characters. You're talking to a server that is using chunked transfer encoding. Those are chunk size codes. Look it up, it's easy to decode. The headers from the server should indicate it's doing chunking.