in reply to Simulating --keep-session-cookies wget option with LWP ?
As you don't show the code using LWP::UserAgent, it's hard for me to guess what you're doing wrong (besides that).
My guess is that you are directly overwriting the cookie file in your unshown program. I use WWW::Mechanize (not WWW::Mechandize) with (persistent) cookies and it works well. As WWW::Mechanize just uses LWP::UserAgent, both should work well with cookies.
I doubt that the cookies file that wget writes is supposed to work with LWP::UserAgent resp. HTTP::Cookies, but maybe they use the same format. I haven't seen this documented anywhere.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simulating --keep-session-cookies wget option with LWP ?
by i5513 (Pilgrim) on Sep 27, 2011 at 09:50 UTC | |
by Corion (Patriarch) on Sep 27, 2011 at 10:22 UTC | |
by i5513 (Pilgrim) on Sep 27, 2011 at 11:28 UTC | |
by Corion (Patriarch) on Sep 27, 2011 at 11:34 UTC | |
by i5513 (Pilgrim) on Sep 27, 2011 at 11:57 UTC |