"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message
002e01c1dd70$6800e7d0$[EMAIL PROTECTED]">news:002e01c1dd70$6800e7d0$[EMAIL PROTECTED]...
> If a user will click to download, Internet Explorer ask the user if she
> wants to open or save the file from the real server.
> I would like to make it appear the server where is my script.
This should work:
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
use LWP::Simple qw/get/;
my($file) =
get('http://www.domain.com/that/I/dont/want/the/user/to/see.exe');
print header(-Content_type => 'application/octet-stream');
print $file;
The user will have to specify the filename herself like this,
I think you will need to add a header to specify a suggested filename.
trw3
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]