For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > October 2005 > changing file name in "Save as" option for html files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author changing file name in "Save as" option for html files
Aravind J

2005-10-25, 7:55 am

Hi ,
I am trying to dynamically change file name of an html
that is generated through a cgi script, I know that
for it is easy to do this for other type of files such
as pdf or csv which we download and save , we can use
"Content-Disposition: attachment; filename =
"abc.pdf"" to change the file name. but this is not
working in case of html , I tried to use "inline" with
Content-Disposition, but this willl just display the
html script AS-IS . I tried another alternative like
"Content-type: text/html; name=dowload.html\n\n";, but
that also fails giving an error "Link could not be
saved. Web page migh have been removed or had it's
name changed."
Could you please help me to solve this issue.

Thanks & Regards
Aravind




__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com