Actually, no. The 'mangled' version is not an encrypted version of the filename - it is a non-encrypted fragment of my page url. My filename is "report.csv"
My page URL is "https://www.mysite.com/report.php?key=29&sendto=Export" The code works fine via either https or http in Mozilla (file 'report.csv' downloads successfully). In IE6 via https, the filename somehow gets replaced with the url (or a portion of it), and shows up in the 'save' dialog as - "...port.php?key=29&sendto=Export". So, I don't think it is an encryption problem. > -----Original Message----- > From: Anas Mughal [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 04, 2003 4:27 PM > To: Geoffrey Thompson > Subject: Re: [PHP] Exporting Data as CSV - IE6/HTTPS Problem? > > HTTPS is encrypting the URL -- including your file name. > > > > Geoffrey Thompson wrote: > > > All: > > > > I have the following php code for downloading a file to the user via the > > browser: > > > > // Open csv file. > > $fp = fopen($fileName, "r"); > > > > // Set file name. > > $dwnldName = "report"; > > > > // Set headers for csv download. > > header("Content-Type:application/csv"); > > header("Content-Disposition:attachment; filename=$dwnldName.csv"); > > header("Content-Transfer-Encoding:binary"); > > > > // Put it to the browser. > > fpassthru($fp); > > > > Works great in the Mozilla browser over both http and https. > > > > Works great in IE 6 over http, but for some reason over https, my > filename > > mysteriously turns into a mangled version of my page url, and the file > > cannot (obviously) be found to be downloaded. > > > > Is it something I'm doing, or is this an IE problem? And if so, are > there > > any work-arounds? > > > > Thanks in advance, > > > > Geoff Thompson > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php