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.
jar | [R] | add_cookie wants something resembling a URI. |
Add a cookie to the jar if it is considered acceptable from uri. Return nil if the cookie was not added, otherwise return the cookie added.
Load cookie jar from a file in the format specified.
Available formats: :yaml <- YAML structure. :cookiestxt <- Mozilla‘s cookies.txt format
Save the cookie jar to a file in the format specified.
Available formats: :yaml <- YAML structure :cookiestxt <- Mozilla‘s cookies.txt format