Go Back   Forum Care Forums > Development Reference Area > Webmaster Topics

Reply
 
LinkBack Thread Tools Display Modes
headers in Safari
Old
  (#1)
Guest
Guest
 
Posts: n/a
Default headers in Safari - 05-14-2007, 01:27 AM

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.

Jeff

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: headers in Safari
Old
  (#2)
Rik
Guest
 
Posts: n/a
Default Re: headers in Safari - 05-14-2007, 01:27 AM

EMAIL REMOVED wrote:
> 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....


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?

Grtz,
--
Rik Wasmus


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top