- 论坛徽章:
- 1
|
- cookie_jar => $hash_ref
- Passing this parameter enables (simplified) cookie-processing, loosely based on the original netscape specification.
- The $hash_ref must be an (initially empty) hash reference which will get updated automatically. It is possible to save the cookie jar to persistent storage with something like JSON or Storable - see the AnyEvent::HTTP::cookie_jar_expire function if you wish to remove expired or session-only cookies, and also for documentation on the format of the cookie jar.
- Note that this cookie implementation is not meant to be complete. If you want complete cookie management you have to do that on your own. cookie_jar is meant as a quick fix to get most cookie-using sites working. Cookies are a privacy disaster, do not use them unless required to.
- When cookie processing is enabled, the Cookie: and Set-Cookie: headers will be set and handled by this module, otherwise they will be left untouched.
复制代码 http://search.cpan.org/~mlehmann/AnyEvent-HTTP-2.14/HTTP.pm |
|