Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^6: Simulating --keep-session-cookies wget option with LWP ?

by i5513 (Pilgrim)
on Sep 27, 2011 at 11:57 UTC ( #928073=note: print w/replies, xml ) Need Help??


in reply to Re^5: Simulating --keep-session-cookies wget option with LWP ?
in thread Simulating --keep-session-cookies wget option with LWP ?

Hello,

Thank you clarifying that issue, using ignore_discard attribute in HTTP::cookies, made the code works.

my $cookie_jar = HTTP::Cookies->new( file => "mycookie-tomcat.cookie", autosave => 1, ignore_discard => 1 );

I don't know if can be future problems with this option enabled. In my case (pooling tomcat manager I suppose that should not be any problem).

Thank you again
PD: I hope this node doesn't appear two times, if so , sorry

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928073]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2016-12-06 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (108 votes). Check out past polls.