RE: downloady filenames

2001-06-12 Thread Robert Thompson

 From: Robin Szemeti [mailto:[EMAIL PROTECTED]]
 Sent: 12 June 2001 03:14
 To: [EMAIL PROTECTED]
 Subject: downloady filenames
 
 
 ISTR somebody explaing the magic incantations you could put after
 
 Content-type: text/some-funny-application
 
 in order for the browser to try and save it as 
 'something.xyz' instead of
 'scriptname.pl' .. enlighten me please as I have flushed my 
 archive and
 lost it.


http://www.isi.edu/in-notes/iana/assignments/media-types/media-types

has a list of the various MIME types that are out there. It will also point
your towards the relevant RFC's.

You may also need to use the

Content-Encoding: enctype

header depending on what your spitting out.

Rob


---
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of IBNet
Plc. 

This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.  Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. 

E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission. If verification is required please
request a hard-copy version. 




RE: downloady filenames

2001-06-12 Thread Robin Szemeti

On Tue, 12 Jun 2001, Robert Thompson wrote:
  From: Robin Szemeti [mailto:[EMAIL PROTECTED]]
  Sent: 12 June 2001 03:14
  To: [EMAIL PROTECTED]
  Subject: downloady filenames
  
  
  ISTR somebody explaing the magic incantations you could put after
  
  Content-type: text/some-funny-application
  
  in order for the browser to try and save it as 
  'something.xyz' instead of
  'scriptname.pl' .. enlighten me please as I have flushed my 
  archive and
  lost it.
 
 
 http://www.isi.edu/in-notes/iana/assignments/media-types/media-types
 
 has a list of the various MIME types that are out there. It will also point
 your towards the relevant RFC's.

indeed .. looks pretty much the same as my apache mime types file ... and
I already have a mime type header for what I am serving up..  but this is
different to what was looking for.

someone somewhere a few weeks ago posted something about an extra line
you could put not dissimilar to 'Apparent-filename: something.xyz' .. its
not so much a mime types thing but a browser thing .. 

ah well .. off to London now to buy a new toy ;)))

-- 
Robin Szemeti   

Redpoint Consulting Limited
Real Solutions For A Virtual World 



Re: downloady filenames

2001-06-12 Thread Roger Burton West

On or about Tue, Jun 12, 2001 at 09:10:32AM +0100, Robin Szemeti typed:
someone somewhere a few weeks ago posted something about an extra line
you could put not dissimilar to 'Apparent-filename: something.xyz' .. its
not so much a mime types thing but a browser thing .. 

Content-Disposition.

R



RE: downloady filenames

2001-06-12 Thread Jon Galliers

This seemed to work.

print Content-type:application/whatever\n.Content-Disposition: 
attachment; filename=$file\n\n


Thanks
Jon

*
  Jon Galliers   [EMAIL PROTECTED]
  Programmer Perl/C++/MySQL/DB2/Java
  Design Net http://www.design.net.uk
Tel: +44(0)870 240 0088
Fax: +44(0)870 240 0099
*




RE: downloady filenames

2001-06-12 Thread Robin Szemeti

On Tue, 12 Jun 2001, Jon Galliers wrote:
 This seemed to work.
 
 print Content-type:application/whatever\n.Content-Disposition: 
 attachment; filename=$file\n\n

yadda! .. thats the cookie! .. 

a thousand thanks ;)

right I can stop my cvs files coming up as .'something.pl' now ...

ta muchly.

-- 
Robin Szemeti   

Redpoint Consulting Limited
Real Solutions For A Virtual World 



downloady filenames

2001-06-11 Thread Robin Szemeti

ISTR somebody explaing the magic incantations you could put after

Content-type: text/some-funny-application

in order for the browser to try and save it as 'something.xyz' instead of
'scriptname.pl' .. enlighten me please as I have flushed my archive and
lost it.


-- 
Robin Szemeti   

Redpoint Consulting Limited
Real Solutions For A Virtual World