Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: add_cookie_headerChapter 17
The LWP Library
Next: Reference: clear
 

as_string

 $cjar->as_string([discard])

Returns the current contents of the cookie jar as a string. Each cookie is output as a Set-Cookie3 header line followed by "0". If discard is given and is true, cookies marked to be discarded will not be output. Set-Cookie3 is a special LWP format used to store cookie information in the save file.


Previous: Reference: add_cookie_headerPerl in a NutshellNext: Reference: clear
Reference: add_cookie_headerBook IndexReference: clear