473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

AJ
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

Oct 26 '05 #1
3 2598
AJ <ar*******@yahoo.com> wrote:
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
Oct 28 '05 #2
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.

Oct 29 '05 #3
"sh***********@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/
Oct 29 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the...
1
by: Midas NDT Sales | last post by:
I have a very simple question. How do you get a link or button on a webpage to save a pdf file. I have a set of html pages with the option to download a pdf version. When you click a button or...
1
by: J. Koskey | last post by:
Background: We have hundreds of codes = specific departments, but there are frequent changes/additions to the info. For users to look up definitions, we had set up a way in Access to create a...
0
by: a | last post by:
Save text file as html kloepper 17:42 23 Jul '04 I'm using httpwebresponse and a StringBuilder to return a stream that originates as a file with the .txt suffix (My download code converts the html...
4
by: Richard | last post by:
Hi I'm new to ASP/Web programming so any help would be appreciated... Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. ...
5
by: Paul Sullivan | last post by:
We are a state agency that views protected medical information via our intranet. The screens even have privacy shields. Alarmingly, uses can "Print" and "Save As" which destroys the protection of...
3
by: B-Dog | last post by:
I'm checking some files to see if the filenames are in a certain format and if not I want to pull up a dialog box that gives me a save as with the file that is in question. I have all the files in...
0
vinci
by: vinci | last post by:
hi! is there any way to display Excel File to HTML? Excel file is formatted, so when displayed to a web the format is the same with the original file... uhm,,, if someone is thinking of...
6
mageswar005
by: mageswar005 | last post by:
Hello Guys, I want to Avoid the Save option when i click the download link in php . I just want open and cancel option only, i dont want save option when i click the download link in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.