Problem with httpc_cookie:fix_netscape_cookie/2

Nicolas Thauvin <>
Thu Apr 29 16:53:27 CEST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpc_cookie.patch
Type: application/octet-stream
Size: 575 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20100429/d3e9b5f7/attachment.obj>


More information about the erlang-patches mailing list