httpc:store_cookies stopped working

Wes James comptekki@REDACTED
Mon May 3 20:45:27 CEST 2010


On Mon, May 3, 2010 at 12:31 PM, Wes James <comptekki@REDACTED> wrote:
> All morning I've been doing:
>
> 14> httpc:reset_cookies().
> ok
> 15> httpc:store_cookies([{"set-cookie","TESTID=set"}], URL).
> ok
> 16> httpc:which_cookies().
> [{session_cookies,[]}]
>
> But now notice above that the cookies aren't storing anymore.  Any
> idea why?  Before I had items in the [] to the right of the
> session_cookies.
>
> I have run inets:start() and ssl:start() before I started doing these.


Hmm - I had to do this again:

http:set_options([{cookies, enabled}]).

and now it works.

-wes


More information about the erlang-questions mailing list