ItsyBitsy has asked for the wisdom of the Perl Monks concerning the following question:
What i want to know is how to get the value of the session id present in the cookie.txt file. Is there any specific function or do i have to open the file and read it and then substitute the values.Also when i add the header field, there is a field called cookie. What exactly do i substitute in that field.my $bot = WWW::Mechanize->new(); $bot->agent_alias( 'Linux Mozilla' ); # Create a cookie jar for the login credentials $bot->cookie_jar( HTTP::Cookies->new( file + => "cookies.txt", autosave => 1, ignore_discard => 1, + ) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting the value of cookies in cookies.txt file.
by Anonymous Monk on May 18, 2012 at 09:55 UTC | |
by ItsyBitsy (Novice) on May 20, 2012 at 02:19 UTC | |
by ItsyBitsy (Novice) on May 20, 2012 at 02:20 UTC | |
by Anonymous Monk on May 20, 2012 at 03:17 UTC |