NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Jul 30, 2009 at 14:20 UTC
  • Comment on Reaped: how to get pdf's that are http links

Replies are listed 'Best First'.
Re: how to get pdf's that are http links
by ww (Archbishop) on Jul 29, 2009 at 01:16 UTC
    ...and you've tried what?

    The PerlMonks Free CodeWriting Service has a broken framus. The part is backordered. We don't know when it will come in.

    wget, Mechanize, et al might be good places to start, if you haven't tried anything yet.

Re: how to get pdf's that are http links
by smahesh (Pilgrim) on Jul 29, 2009 at 04:02 UTC

    Look at LWP or WWW::Mechanize. The Mechanize module comes with simple and easy to follow examples and a cookbook that should get you started on your code.

    Mahesh

Re: how to get pdf's that are http links
by imrags (Monk) on Jul 29, 2009 at 04:50 UTC
    I had used Win32::IEAutomation(to browse the site,fill forms etc.)
    along with Win32::GuiTest to save files from the internet (especially when you get the "Save As" popups).
    Here's the actual code that i used to save file:
    use Win32::GuiTest('FindWindowLike','SetForegroundWindow','SendKeys',' +PushButton'); my @windows = FindWindowLike(0, "^File Download - Security Warning","# +32770"); SetForegroundWindow($windows[0]); PushButton("&Save",1); SendKeys("%S"); sleep(2); SendKeys($file); SendKeys("~");
    For this though, you have to make the IE/Firefox window visible.
    Raghu
Re: how to get pdf's that are http links
by afoken (Chancellor) on Jul 29, 2009 at 08:05 UTC

    Double post. See web scrap question.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)