Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: web downloading via lwp

by cormanaz (Chaplain)
on May 19, 2010 at 00:32 UTC ( #840590=note: print w/replies, xml ) Need Help??

in reply to web downloading via lwp

This is not a lot of info to go on. But you might have a look at Win32::IEAutomation. Sometimes it's the only thing you can use if you want to access sites that have javascript, applets, flash, and such like. It basically hacks IE to let your perl script do the driving.

My guess is that you could use this to open a download window in IE and download the file, then you'd have to find and open that file with your script.

Of course you have to be on windoze to use it.

Replies are listed 'Best First'.
Re^2: web downloading via lwp
by 23penguins (Initiate) on May 19, 2010 at 04:27 UTC
    Sorry for the confusion. All the lwp examples I have seen return content. And when they talk about saving files, they talk about saving the content of the request. Basically , my url does not point to a static text page, or a file. My url runs code. The code finds the file, pulls it out of the repository, packages it up and then launches the "save as" dialog box. I have looked at Win32::IEAutomation. I cannot figure out how to automate the "open a download window in IE and download the file" part. My url already already opens the download window. Thanks

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840590]
LanX ♪..♫ Fiesta, fiesta mexicana ... ♪..♫
[mandarin]: LanX aren't you a bit late to the party?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-06-18 17:43 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.