start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 17.3 The HTTP Modules Chapter 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 Modules Perl in a Nutshell Next: Reference: as_string
17.3 The HTTP Modules Book Index Reference: as_string

Library Navigation Links

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