HTTP 411 Length Required
The server refuses the request because the Content-Length header is missing or undefined. The server requires that any request with a body must include the Content-Length header with the exact byte size. Some APIs and legacy servers need to know the payload size upfront to pre-allocate buffers or enforce upload limits before reading the body. If you are using chunked transfer encoding (Transfer-Encoding: chunked), you may need to disable it and buffer the entire payload locally to compute the exact length before sending. Modern HTTP/2 and HTTP/3 handle this differently via DATA frames.
Part of GalacticaSuite Cosmos — open the API client to test requests.