For a “HTTP/1.1 200 OK” response the “Content-Length:” is missing in the header.

Started by [email protected], January 11, 2017, 05:03:55 AM

Previous topic - Next topic

[email protected]

For a "HTTP/1.1 200 OK" response with a body of just text, how do I force Apache to send  "Content-Length:", the length being the length of the body of text. It sends "Transfer-Encoding: chunked" but no  "Content-Length:".  In fact is there way to instruct Apache to take what I give and keep your hands out of the reply.   What I want is a "HTTP/1.1 200 OK" reply with a line of text and "Content-Length:" specified in the header. I don't need Apache to generate the "Content-Length:" line, I can do that and pass it over. Thanks. Roger