[SIPForum-discussion] help:Header Field Format?

=?gb2312?q?=D3=EA=20=B3=C2?= chen.yu26 at yahoo.com.cn
Wed Dec 19 08:54:46 EST 2007


Hi, all
  Now , I meet a big problem in the SIP message parsing¡ªthe structure of header field:
   
  1.  field-name :  field-value
  on either side of the colon(":"), the arbitrary amount of whitespace is unlimited in theory. So what does the ¡°whitespace¡± mean? a SP or HTAB?
   
  2. a folding field-value
     If the SIP header field values be folded onto multiple lines. 
  For instance,

   Subject: This is a test    =>     Subject: This

                                        is a test

 

So on the two lines, which kind of character will follow the word ¡°This" and "test"as an end of each line?

Is there still a CRLF? before interpreting the field value of ¡°Subject¡±, should I use a single SP instead of  all the special spaces between ¡°This¡± and ¡°is¡±?

 

Moreover, is there any possible that these following fields to be split into a multiple line representation? 

          Call-ID, CSeq, From, Context-Type
   
  Merry Christmas!
   
  Nora


       
---------------------------------
ÑÅ»¢ÓÊÏä´«µÝÐÂÄê×£¸££¬¸öÐԺؿ¨ËÍÇ×Åó£¡ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sipforum.org/pipermail/discussion/attachments/20071219/1820d1cb/attachment.html 


More information about the discussion mailing list