Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Download Links

by Vermin (Initiate)
on Dec 11, 2002 at 19:03 UTC ( #219149=perlquestion: print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Download Links
by mt2k (Hermit) on Dec 11, 2002 at 19:44 UTC
    I don't see why this node has 3 keep votes, but I'll answer your question anyhow: No. It's not possible with perl, but theoretically you could do it with an ActiveX control. I'm not getting into detail about it, read it up on your own. Note that it's a Micro$oft thing, so it's audience is limited. My best answer: don't do it. Let the user download it and execute it themselves. No extra work for you, the amount of work an internet user expects to have to do, and it keeps the internet the way it was meant to be. Dont Do It. Period.
Re: Download Links
by CountZero (Bishop) on Dec 11, 2002 at 22:40 UTC

    Whether the user's browser renders, downloads or executes a link is up to the brower's settings and the link or web-page's MIME-type settings. Of course Microsoft browers have a tendency to look to the filename-extension as well and this messes things up. If you make a dynamic web-page (with mod_perl of course!) you should take care of putting the right mime-type for the content header.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: Download Links
by benn (Vicar) on Dec 12, 2002 at 12:56 UTC
    Isn't this usually called 'infecting the user with a virus'?<g>
    Seriously though, if you think about it for just a moment, this is a very dangerous thing. There's no way of automatically executing files from a browser unless (as mentioned above) you persuade your user to install *another* piece of software first - ActiveX / custom-built installer / whatever - and then persuade them to turn off their browser security checks and the like. And once you've done that, you need to remind them to switch them all *on* again after visiting your site, to prevent the next unscrupulous site they visit trying to do the same thing...
    <a href='HuntForCreditCardNumberInMySwapFile.exe'>Britney Pics</a>
Re: Download Links
by dmitri (Priest) on Dec 11, 2002 at 19:11 UTC
    And what, exactly, does this question have to do with Perl?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://219149]
Approved by jkahn
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2022-10-03 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (15 votes). Check out past polls.

    Notices?