Hi,
I have a script to allow dynamic downloading of files which works for
netscape and MSIE 4 but not for MSIE 5:
<DOCDIR>/PERL/file.pl:
use Apache::Constants;
$r = Apache->request;
open(FILE, "/tmp/o.pdf");
$r->status(OK);
$r->header_out("Content-Disposition", "attachment; filename=\"o.pdf\"");
$r->header_out("Content-Length", 6247);
$r->content_type("application/pdf");
$r->send_http_header;
$r->send_fd(FILE);
close(FILE);
in httpd.conf:
<Location /PERL>
Options ExecCGI
SetHandler perl-script
PerlHandler Apache::Registry
PerlAuthenHandler CS::Cookie->authen
PerlAuthzHandler CS::Cookie->authz
PerlSetVar CookieAuthPath /
PerlSetVar CookieAuthLoginScript /login/index.html
AuthType CS
AuthName CookieAuth
require valid-user
</Location>
Hitting the link on <a href="/PERL/file.pl">file</a> gives an error on
MSIE5 saying the page couldn't be opened. This works perfectly on
netscape and MSIE 4...
Any clues?
Dirk