http://www.perlmonks.org?node_id=273618


in reply to Lack of LWP::SIMPLE information

Sorry about the missing line breaks in the second paragraph. Too bad I can't edit it.

Replies are listed 'Best First'.
(jeffa) 2Re: Lack of LWP::SIMPLE information
by jeffa (Bishop) on Jul 12, 2003 at 13:15 UTC
    I popped in and edited it for you ... hope you don't mind. Normally i would wait for a consideration and a good number of 'edit' votes ... but in this case i saw no harm.

    Regarding your question ... LWP::Simple is indeed simple to use (i searched for 'redirect' in the POD and found no match), so simple that what you want may indeed not be there. In the past, i used LWP and Co. for serious web bots ... these days i just WWW::Mechanize (check out WWW::Mechanize::Shell as well). They make writting web bots fun again. ;)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
      Thanks for the edit! WWW::Mechanize sounds familiar. I'm barely a Perl programmer, and I'm almost done with a complex perl script that I'd rather not re-work, but I'll read up on Mechanize. I'm wondering... since LWP::SIMPLE can get the page that has the redirect code in it, maybe I should write a redirect routine myself... on the other hand I'd like to adjust the timeout, which I don't think LWP::Simple allows.