[reSIProcate] WebSocket cookie support

Catalin Constantin Usurelu catalin.usurelu5 at gmail.com
Wed Sep 4 15:41:44 CDT 2013


Hi everyone,

I'm working on adding cookie support for WebSocket in reSIProcate but I'm
not sure how to proceed, so I would like some suggestions/feedback, if
possible.

Basically I would like to use the existing code and logic used to implement
the SIP header support in resip/stack (that's where the cookie code will be
too).
The thing is, from reading the RFC's, the cookie header is like this:
Cookie: name1=value1; name2=value2And you can theoretically have many
headers (but in practice it's never done).The problem is I can't use the
existing code to parse the ';' symbol, it only knows of using ',' to split
multiple field-values.I could add some code to also treat the cookie
case but it's not really "sip grammar" (neither
is the cookie, but I think it's fine if it uses the existing code), so I'm
not sure if it's ok or not.Or I could just use the Cookie header as
StringCategory type, and make a separate parser
just for cookies but it won't really adhere to the code style/pattern.

Kind regards,

Catalin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20130904/f3c9ab9d/attachment.htm>


More information about the resiprocate-devel mailing list