Shannon,

This cannot be done.  It would be a HUGE security hole if it was possible!
You may have the best intentions in the world with your application, but
there are many others out there who like to damage other people's
computers...

Imagine if you could set your script to automatically download a .bat file
that would delete files, then automatically added this file to the users
autoexec.bat!  Things would be very bad.

Microsoft has tried, via "active scripting", etc... To allow for automatic
downloads and even program execution.  The results - well, you have
probably seen all of the virus alerts going on lately....

You are going to have to find another way to get the file you want on the
persons harddrive...

Good luck,
Brent






                                                                                       
               
                    Shannon Murdoch                                                    
               
                    <uploads@undergroundforu        To:     [EMAIL PROTECTED]     
               
                    m.f2s.com>                      cc:                                
               
                                                    Subject:     Auto-initialising a 
client-side      
                    10/24/01 02:42 AM               download                           
               
                                                                                       
               
                                                                                       
               




Hi all,

I'm writing a script that will require a text file on my http server to be
downloaded (*not viewed in browser window*) by the script's activator.

Let's say the text file is called 'bobby.txt' and is located in the same
directory as the cgi script.  ( The full URL that will end up being used
will be http://www.domainname.com/cgi-bin/bobby.txt )

Does anyone know what HTTP/perl command to send to the client's browser
which will auto-initiate the download?

I think it would be good to have an online searchable database of this
newsgroup, so you don't have to download every message to see if your
question has already been answered a few days or weeks ago! =)

Thanks in advance!
-Shannon


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to