944,183 Members | Top Members by Rank

Ad:
Aug 28th, 2006
0

Content-Length in HTTP 1.1

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nkum_2000 is offline Offline
1 posts
since Aug 2006
Aug 28th, 2006
0

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: [b]html & C++[/b]
Next Thread in HTML and CSS Forum Timeline: PDF web page?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC