How to get just the first N bytes with http(async?)client for a server that does not support range requests ? I did not find any obvious way to do it with httpclient methods. I'm thinking something like httpAsyncClient that closes the connection when the stream is > N bytes, with 0ms poll, but I do not know how to write this.
- How to get just the first N bytes with httpclient ? void09
