Product of NIST/ITL Advanced Networking Technologies Division (ANTD). *
ContentLength SIPHeader (of which there can be only one in a SIPMessage).
Fielding, et al. Standards Track [Page 119]
RFC 2616 HTTP/1.1 June 1999
The Content-Length entity-header field indicates the size of the
entity-body, in decimal number of OCTETs, sent to the recipient or,
in the case of the HEAD method, the size of the entity-body that
would have been sent had the request been a GET.
Content-Length = "Content-Length" ":" 1*DIGIT
An example is
Applications SHOULD use this field to indicate the transfer-length of
the message-body, unless this is prohibited by the rules in section
Any Content-Length greater than or equal to zero is a valid value.
Section 4.4 describes how to determine the length of a message-body
if a Content-Length is not given.
Note that the meaning of this field is significantly different from
the corresponding definition in MIME, where it is an optional field
used within the "message/external-body" content-type. In HTTP, it
SHOULD be sent whenever the message's length can be determined prior
to being transferred, unless this is prohibited by the rules in
- M. Ranganathan
- Olivier Deruelle
- 1.2 $Revision: 1.7 $ $Date: 2009/10/18 13:46:34 $
Constructor given a length.
get the ContentLength field.
Set the contentLength member
contentLength int to set
+ ", ContentLength, setContentLength(), the contentLength parameter is <0");
Encode into a canonical string.
Pattern matcher ignores content length.