Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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.


Comment on Re: web downloading via lwp
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-09-17 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (68 votes), past polls