Parsing cookie headers in J2ME/BlackBerry apps

Posted by Marc Novakowski on Stack Overflow See other posts from Stack Overflow or by Marc Novakowski
Published on 2010-02-02T19:54:10Z Indexed on 2010/03/08 8:06 UTC
Read the original article Hit count: 800

Filed under:
|
|
|

When using an HttpConnection in a BlackBerry app, you often get HTTP cookies in the response headers. Unfortunately there are no built-in APIs to assist with the parsing of the cookie headers.

Has anyone found a third-party library to assist with the parsing of the cookie header(s) into a more useful data object? Creating some custom code that just parses out the name and value of the cookie isn't too difficult, but I'd like to also consider other fields within the cookie such as the expiration and domain fields.

© Stack Overflow or respective owner

Related posts about blackberry

Related posts about cookie