Dear Sir,
I am developing a web-application. I don't want to send Content-Length in HTTP 1.1 response.

According to rfc, whether Content-Length is a mandatoey header or it can be ignored while sending a HTTP Response for HTTP 1.1. Is it mandatory to send either Transfer-Encoding or Content-Length in HTTP Response for HTTP 1.1

Please help me out so that if Content-Length is not a mandatory field then your answers will bolster my confidence in writing less complicated code.

Thanks
- Niraj

Are you writing a web server? Or just a "site"? These headers are intended to be sent by the web server itself. If you are using Apache or IIS for example, you just need to code your pages, starting with the DOCTYPE declaration, and you don't need to worry about sending any headers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.