Ethereal-dev: [Ethereal-dev] How to decode or understand WSP Cookie Header?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Yang Zan Feng <yangzanfeng@xxxxxxxxxx>
Date: Mon, 23 May 2005 13:04:44 +0800

Hi, all

Web Server sent a response with Set-Cookie field: Set-Cookie: name=abc; path=/

then the Openwave SDK 6.2.2 WAP sends a request with the Cookie field,

the Cookie field can't be decoded by ethereal.

The Cookie field's HEX format is:

c2 1d 31 00 09 61 62 63 00 31 32 33 00 00 10 3b

00 31 30 2e 37 30 2e 31 30 39 2e 31 34 37 00  

Refer to WAP-230-WSP,

Cookie-value = Value-length Cookie-version *Cookie

Cookie = Cookie-length Cookie-name Cookie-val [Cookie-parameters]

Cookie-length = Uintvar-integer

Cookie-parameters= Path [Domain]

Path = Text-string   

if path is an empty string, it indicates that there is no path value present.

Domain = Text-string

I can decode the most of this field,  but i don't understand what "00 10 3b 00" means.

0x00 may mean that there is no path value present, but 0x10 means what??? 

Any suggestion will be appreciated.

Best Regards,

Ziven (YangZanfeng)

Phone:+86-755-28974288
*********************************************************************************************************
This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction,or issemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or e-mail immediately and delete it!
*********************************************************************************************************