Click here to get back home

changing file name in "Save as" option for html files

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
changing file name in "Save as" option for html files AJ 10-26-2005
Posted by AJ on October 26, 2005, 3:43 am
Please log in for more thread options


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." . Is there any way to achieve this requirement ?
Could you please help me to solve this issue.

Thanks & Regards
Aravind


Posted by Miguel Cruz on October 28, 2005, 7:25 am
Please log in for more thread options


> I am trying to dynamically change file name of an html
> that is generated through a cgi script

How about just leaving it on the end of the URL you send them?

http://example.com/generate.cgi/download.html

Works with Apache, anyway, not sure about IIS.

miguel
--
Hit The Road! Photos from 38 countries on 5 continents: http://travel.u.nu
Latest photos: Burma; Hong Kong; Macau; Amsterdam; Grand Canyon; Amman
Airports of the world: http://airport.u.nu

Posted by shreeshupriya on October 28, 2005, 11:42 pm
Please log in for more thread options


hai,


you have any probelm in website,and you what

any clarification in hosting, html, php

languages and any thing....

you got the solution that is getinnet.com.
go and visit the site. your problem will be

solved. as soon as...


bye.


Posted by Philip Ronan on October 29, 2005, 10:14 am
Please log in for more thread options


"shreeshupriya@yahoo.com" wrote:

> hai,
>
>
> you have any probelm in website,and you what
>
> any clarification in hosting, html, php
>
> languages and any thing....

Hai, I am also having probelm in usenet spamming moron, but I have good
solution that is kiilfile.

My problem will be solved as soon as ...

bye

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/



Similar ThreadsPosted
need different view option for *.html file October 11, 2008, 7:42 pm
Why can't I save this page as a file and where's the source html? June 22, 2005, 2:08 am
invoking ie/windows file save dialog July 15, 2004, 4:47 pm
Extra file extension in Save As dialog February 23, 2005, 4:00 am
Problem with downloading Word doc files and rtf files through browser January 25, 2005, 5:33 pm
writing an html command to disable the right click>view source option November 1, 2004, 2:58 pm
Automatically changing the hue of a jpg in html page August 11, 2004, 9:43 pm
forcing ie to save the contents of the html instead of displaying it September 9, 2005, 5:47 pm
Gaps caused by whitespace: solutions without changing HTML code? May 19, 2006, 1:36 pm
html link to excel spreadsheet without open/save prompt April 20, 2005, 1:17 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap