|Think about Loose Coupling|
Simulating --keep-session-cookies wget option with LWP ?by i5513 (Pilgrim)
|on Sep 27, 2011 at 09:32 UTC||Need Help??|
i5513 has asked for the
wisdom of the Perl Monks concerning the following question:
First, I cannot install LWP::Parallel::UserAgent (it is not installable in debian sid). I would like to solve this problem without any other module (WWW::Mechanize ..., and other modules which can be found searching in the monastery).How can I simulate next code in perl (just rewriting wget command with LWP module) ?
I tried to simulate it with LWP, but I fail when I want to load the previous cookie file (lwp saves always an empty cookie file).
I tried too loading file from wget cookie file, but lwp removes the content. I would like to maintain the http session in each url, and I wouldn't like to have running threads all the time (that is the other option)
So, without pointing me to another module (aka Threads::Pool), how can I s/wget/lwp/ in this case ?
Thank you very much !