411 Error using httpClient

This is a bit of an issue with the implementation of Java 11's HttpClient.

It restricts the Content-Length header from being set manually, and automatically includes it, but only if there is a non-empty body. This is technically compliant behavior, though I don't think it's in line with recommendations.