headers in Safari

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

  I'm writing links to server generated content. (Content is in
protected directory and then rewritten to a public place)

I'm writing a header like this:

Content-Disposition: inline; filename=my _mp3.mp3
Content-type: audio/mpeg3

mp3 content here....

This works fine in browsers other than Safari. When you try to save in
Safari, instead of picking up the my_mp3.mp3 filename, it uses the
script filename. Not good.

  So, what have I missed?

  I suppose I could use mod_rewrite to fake it....

  Going on a week in which Earthlink Usenet has been down. What a
horrible unresponsive ISP.


Re: headers in Safari

cyberjef@gmail.com wrote:
Quoted text here. Click to load it

What if you try:
Content-Disposition: inline; filename="my _mp3.mp3"
Content-Type: audio/mpeg3

Note the quotes and a fixed capital in Content-Type.
Furthermore: are you sure there should be a space in there?

Rik Wasmus

Site Timeline