tenderlove/mechanize — Issue #171: Feature request - cookie_jar load cookies from memory
Author: oferben
Created: 2011-11-27 13:23:50+00:00
State: open

Hi,

At the moment, if I want to set an agent cookie state, I must use the cookie_jar.save_as and cookie_jar.load from a hard disk cookie file.
I would like to do it using a memory variable.

It will be possible using 2 new functions:
get_serialized_jar(format = :yaml)
set_jar(jar_obj, format = :yaml)

Another nice feature which available in mechanize in other languages in autosaving the cookie state to a file.
I think this should be added too.

Ofer