Re: Wap cookies patch

Martin Conte Mac Donell <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Tue, Feb 3, 2009 at 10:23 PM, Nikos Balkanas <[email protected]> wrote:
> Hi,
>
> The following is a simple patch to align cookies with RFC 2068 (HTTP 1.1) &
> 2109 (cookie). It decreases memory requirements, processing time, and
> handles correctly cookies that have '=' in their values.
>
> From RFC 2068:
>
> token          = 1*<any CHAR except CTLs or tspecials>
>
>           tspecials      = "(" | ")" | "<" | ">" | "@"
>                          | "," | ";" | ":" | "\" | <">
>                          | "/" | "[" | "]" | "?" | "="
>                          | "{" | "}" | SP | HT
>
> From RFC 2109:
>
> av-pairs        =       av-pair *(";" av-pair)
> av-pair         =       attr ["=" value]        ; optional value
> attr            =       token
> value           =       word
> word            =       token | quoted-string
>
> Therefore in a NAME = VALUE pair in a cookie, NAME cannot contain any of
> those fancy characters.

Seems good. +1

M
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.