Hi,
This problem only affects PC IE. On a secured page (a page visited via
https), there is a link that reads -- "Download HTML File". The link
connects to this page
<?php
require("../../util_fns.php");
session_start() ;
$user_id = $_REQUEST[USER_ID_PARAM];
$file_contents = generateLoginFi le($user_id);
header('Content-Type: text/html');
header('Content-Length:' . strlen($file_co ntents));
header('Content-Disposition: attachment; filename="' .
str_replace("%s ", getCompanyName( $user_id), AUTO_LOGIN_FILE _TITLE) .
'.html"');
print $file_contents;
?>
However, on Internet Explorer, when I'm prompted to save the file, I
click "Save" and then get an error message stating, "Internet Explorer
cannot download ...ate_login_fi le.php?UserId=2 from
mysite.mydomain .com.
Internet Explorer was not able to open the Internet site. The
requested site is either unavailable or cannot be found. Please try
again later."
Is there something wrong iwth one of the headers I'm sending? I'm
using PHP 4.4.4.
Thanks, - Dave
This problem only affects PC IE. On a secured page (a page visited via
https), there is a link that reads -- "Download HTML File". The link
connects to this page
<?php
require("../../util_fns.php");
session_start() ;
$user_id = $_REQUEST[USER_ID_PARAM];
$file_contents = generateLoginFi le($user_id);
header('Content-Type: text/html');
header('Content-Length:' . strlen($file_co ntents));
header('Content-Disposition: attachment; filename="' .
str_replace("%s ", getCompanyName( $user_id), AUTO_LOGIN_FILE _TITLE) .
'.html"');
print $file_contents;
?>
However, on Internet Explorer, when I'm prompted to save the file, I
click "Save" and then get an error message stating, "Internet Explorer
cannot download ...ate_login_fi le.php?UserId=2 from
mysite.mydomain .com.
Internet Explorer was not able to open the Internet site. The
requested site is either unavailable or cannot be found. Please try
again later."
Is there something wrong iwth one of the headers I'm sending? I'm
using PHP 4.4.4.
Thanks, - Dave
Comment