This tutorial describes the steps to encode and decode WSP headers.
Wireless Session Protocol (WSP) offers services that are most suited for browsing applications. It provides functionality equivalent to HTTP 1.1 which incorporates features such as long-lived sessions, a common facility for data push, capability negotiation and session suspend/resume. For more details on WSP services, refer to WAP WSP.
TWspField object holds the name and value pair
of the WSP header field. TWspHeaderSegmenter pulls the header
/ value pair out of the WSP buffer (into TWspField). Call TWspHeaderSegmenter::NextL() to
iterate through the WSP buffer. It calls TWspPrimitiveDecoder.TWspPrimitiveEncoder allows encoding of header
values. This encodes the input using various WSP encoding methods as follows: TWspPrimitiveEncoder is
used to convert data into binary strings. TWspPrimitiveDecoder allows decoding the primitive
values of the header. This allows interpreting the encoded header.