![]() |
| ||
| Content-Length in HTTP 1.1 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 |
| ||
| Re: Content-Length in HTTP 1.1 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. |
| All times are GMT -4. The time now is 12:55 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC