| LinuxMafia | so i take a look at them content , is what i want? |
| Daveman | haha hobbs, behold, the torture :P |
| rindolf | LinuxMafia: yes. |
| LinuxMafia | rindolf, then what is lwp-download. |
| Daveman | WWW::Mechanize? |
| rindolf | LinuxMafia: it's a script I think. |
| alester | LinuxMafia: What are you trying to do with the page once you get it? |
| hobbs | LinuxMafia: something completely irrelevant |
| Daveman | haha Gumbybrain: wget -q http://linuxmafia/ |
| GumbyBRAIN | Linuxmafia, so, do you think q is a babe. |
| Daveman | hah |
| LinuxMafia | i do this let's say $req = HTTP::Request->new(GET => "path/to/file"); |
| scrottie | perlbot: seen buu? |
| rindolf | .seen buu |
| frogbot | buu was last seen 2 hours, 34 minutes and 50 seconds ago, saying "BIIIIIIINGOS." in #perl on FreeNode. |
| alester | LinuxMafia: What are you going to do with the page when you get it? |
| action | CPAN upload: XML-Tiny-1.05 (+++ ) by DCANTRELL |
| CPAN | upload: XML-Tiny-1.05 (+++ ) by DCANTRELL |
| alester | This is not a pointless, irrelevant question. |
| LinuxMafia | and alester what page? |
| alester | You are trying to fetch a file, right? |
| stpierre | any WWW::Mechanize gurus in the house? |
| alester | stpierre: I wrote it. |
| action | scrottie giggles |
| scrottie | giggles |
| stpierre | I *guess* that'll do :) |
| LinuxMafia | alester, no i extract a link with WWW::Mechanize , and now i want to download it |
| alester | OK, then you can do it with mech follow the link, and then use $mech->save_content() |
| hobbs | LinuxMafia: so replace "no" with "yes" |
| LinuxMafia | alester, can i tell it where to save? |
| stpierre | i'm trying to get it to do the right thing with some forms generated with PHP where the form elements are named things like 'object[lastname]', complete with square brackets |
| alester | LinuxMafia: You think I'd make it so that it only saves where it wants to save it, without consideirng the wishes of the pgorammer? |
| stpierre | $mech->submit_form(with_fields => {"object[lastname]" => "Test"}) complains that no matching form was found |
| hobbs | LinuxMafia: you can STILL save the data wherever you want, the same as you could the last 20 times you asked. |
| alester | stpierre: How does the page look when dumped with mech-dump? |
| stpierre | i haven't tried that -- i'm a mechanize n00b |
| LinuxMafia | hobbs, but how? |
| alester | try mech-dump |
| stpierre | gimme a few secs |