Reference: add_cookie_header (Perl in a Nutshell)

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 17.3 The HTTP ModulesChapter 17
The LWP Library
Next: Reference: as_string
 

add_cookie_header

 $cjar->add_cookie_header($request)

Adds appropriate Cookie headers to an HTTP::Request object $request. $request must already be created with a valid URL address. This method will search the cookie jar for any cookies matching the request URL. If the cookies are valid (i.e., have not expired) they are used to create Cookie headers and are added to the request.


Previous: 17.3 The HTTP ModulesPerl in a NutshellNext: Reference: as_string
17.3 The HTTP ModulesBook IndexReference: as_string

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.