My header points to a url which is actually another cgi script. This cgi script essentially cats a file, reads it into a variable, and returns the file contents to the browser. The problem I am having is that when the save as popup box appears on my screen the filename does not match the filename that I read the contents from. Meaning I get the correct file contents, however it seems like the browser is returning the name of the script or application as opposed to the filename. This only happens when I use a refresh header. If I point to my cgi script in my browser, it gives me a popup box with the correct filename. Seems like I am having a problem with the refresh header.print $cgi->header(-refresh=>"1;URL=$urlfrank", -type=>'text/html');
In reply to Cannot get correct filename using CGI by frank_2k4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |