How to send a cookie without having it CGI escaped

8 views
Skip to first unread message

anywho

unread,
Jun 24, 2013, 6:38:18 PM6/24/13
to rubyonra...@googlegroups.com
hi,

I'm trying to get a cookie to store in the format  key=value@key2=value2  ( compatibility reasons over which I have no control ).

However, when the cookie get's set, it is stored as key%3Avalue%40key2%3Avalue2 which is what the CGI.escaped version of key=value@key2=value2 looks like.

How can I set it without it being escaped?

Thanks in advance,

-a


anywho

unread,
Jun 24, 2013, 6:54:40 PM6/24/13
to rubyonra...@googlegroups.com
I ended up using

headers['Set-Cookie'] = 'cookiename=key=value@key2=value2; domain=.domain.com; path=/'
Reply all
Reply to author
Forward
0 new messages