Content-Length in HTTP 1.1

Reply

Join Date: Aug 2006
Posts: 1
Reputation: nkum_2000 is an unknown quantity at this point 
Solved Threads: 0
nkum_2000 nkum_2000 is offline Offline
Newbie Poster

Content-Length in HTTP 1.1

 
0
  #1
Aug 28th, 2006
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
Last edited by nkum_2000; Aug 28th, 2006 at 8:08 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Content-Length in HTTP 1.1

 
0
  #2
Aug 28th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC