Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Problem with httpc_cookie:fix_netscape_cookie/2

Guest
Posted: Thu Apr 29, 2010 2:54 pm Reply with quote
Guest
Hi all,

I found an oddity while using httpc with cookies enabled.
A well-known web site replies with this header:

{"set-cookie","visit=G; Expires=Tue, 17-May-2078 17:34:56 GMT; Path=/"},

httpc_cookie:fix_netscape_cookie/2 is not pleased when that happens. It
does not see the upper case 'E' of 'Expires', and cannot "fix" the cookie.

Here is the patch I used to make it work.

-- Nicolas

Post received from mailinglist
Guest
Posted: Thu Apr 29, 2010 2:54 pm Reply with quote
Guest
Hi all,

I found an oddity while using httpc with cookies enabled.
A well-known web site replies with this header:

{"set-cookie","visit=G; Expires=Tue, 17-May-2078 17:34:56 GMT; Path=/"},

httpc_cookie:fix_netscape_cookie/2 is not pleased when that happens. It
does not see the upper case 'E' of 'Expires', and cannot "fix" the cookie.

Here is the patch I used to make it work.

-- Nicolas

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum