I am using rest-client
gem for communication between my CLI client and server. I am using cookies for persisting HTTP session.
@cookies = response.cookies
...
RestClient.post( :cookies => @cookies)
As you can see from the snippet cookies are persistent inside ruby process. I want to persistent them longer than that (as browser does).
Is there native rest-client
way for doing that? If not, where should I store them on file system for both *nix and windows systems?
Thanks