Class Mechanize::CookieJar
In: lib/mechanize/cookie_jar.rb
Parent: Object

This class is used to manage the Cookies that have been returned from any particular website.

Methods

add   clear!   cookies   dump_cookiestxt   empty?   load   load_cookiestxt   new   save_as   to_a  

Attributes

jar  [R] 

Public Class methods

Public Instance methods

Add a cookie to the Jar.

Clear the cookie jar

Fetch the cookies that should be used for the URI object passed in.

Write cookies to Mozilla cookies.txt-style IO stream

Load cookie jar from a file in the format specified.

Available formats: :yaml <- YAML structure. :cookiestxt <- Mozilla‘s cookies.txt format

Read cookies from Mozilla cookies.txt-style IO stream

Save the cookie jar to a file in the format specified.

Available formats: :yaml <- YAML structure :cookiestxt <- Mozilla‘s cookies.txt format

[Validate]