try adding this header:

This is it in ASP, so just add this header:
Response.AddHeader "content-disposition", "attachment; filename=yourfile.pms"

Chris.
-----Original Message-----
From: Duncan [mailto:[EMAIL PROTECTED]
Sent: 03 November 2003 14:48
To: [EMAIL PROTECTED]
Subject: Content Type


I have a file running as a jsp but with a differant extension (.pms).
When a user requests this file in IE/Netscape. I want it to download as
a file rather than being opened as text by the browser.

I have tried adding:
response.setContentType("application/octet-stream");
but this only seems to work some of the time.

Anyone any ideas?

Duncan Smith
Decker Telecom Ltd


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - 
powered by MessageLabs. For further information visit http://www.mci.com

NOTE: The information in this email is confidential. If you are not the
intended recipient, you must not read, use or disseminate this information. Although 
this email and any attachments are believed to be free of any virus, or any other 
defect which affect any computer or IT system into which they are received and opened, 
it is the responsibility of the recipient to ensure that they are virus free and no 
responsibility is accepted by London City Airport for any loss or damage rising in any 
way from receipt or use thereof. The contents of this message including any 
attachments does not necessarily reflect the view of London City Airport, unless 
expressly stated to the contrary the message is the work of a sender acting as an 
individual.

www.londoncityairport.com 
____________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - 
powered by MessageLabs. For further information visit http://www.mci.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to