Configuring response header details.

View: New views
6 Messages — Rating Filter:   Alert me  

Configuring response header details.

by Ian Skinner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How would one translate the following ColdFusion concept directly into
static web content?  We have static web pages that link directly to
video content and it should be downloaded rather then streamed.  Is
there some easy way to set this up?

Apache on Solaris is the relevant web server.

<CFHEADER NAME="Content-Disposition" VALUE="attachment; filename=foo.mp3">
<CFCONTENT TYPE="application/unknown" FILE="c:\foo.mp3">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:645
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.29

Re: Configuring response header details.

by Erika L. Walker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What about with a normal a href link to the content?

On Thu, Sep 4, 2008 at 1:44 PM, Ian Skinner <HOF@...> wrote:

> How would one translate the following ColdFusion concept directly into
> static web content?  We have static web pages that link directly to
> video content and it should be downloaded rather then streamed.  Is
> there some easy way to set this up?
>
> Apache on Solaris is the relevant web server.
>
> <CFHEADER NAME="Content-Disposition" VALUE="attachment; filename=foo.mp3">
> <CFCONTENT TYPE="application/unknown" FILE="c:\foo.mp3">
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:646
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.29

Re: Configuring response header details.

by Ian Skinner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Erika L. Walker wrote:
> What about with a normal a href link to the content?
That's what we got, but since the browser recognizes the extension it
plays the content rather then downloads it.  Apparently the desire is to
deliver the video to clients who want it, not just have them play it
streaming from our site.

Is there any easy way to configure our setup so that the video is
downloaded by the browser not played with any plug-in whether or not
such a plug-in is available?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:647
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.29

Re: Configuring response header details.

by Erika L. Walker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ahhh - JavaScript. The link calls a function which forces it to download or
at least call the save dialogue box.
What that code is directly - I'd have to look up ... but I've clicked on
links like that before ...

On Thu, Sep 4, 2008 at 3:01 PM, Ian Skinner <HOF@...> wrote:

> Erika L. Walker wrote:
> > What about with a normal a href link to the content?
> That's what we got, but since the browser recognizes the extension it
> plays the content rather then downloads it.  Apparently the desire is to
> deliver the video to clients who want it, not just have them play it
> streaming from our site.
>
> Is there any easy way to configure our setup so that the video is
> downloaded by the browser not played with any plug-in whether or not
> such a plug-in is available?
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:648
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.29

Re: Configuring response header details.

by Erika L. Walker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here's one used with .php ... it is possible to have a .php file on the
server you use? Might be the best answer ...

http://www.webmasterworld.com/forum88/8219.htm

On Thu, Sep 4, 2008 at 4:09 PM, Erika L. Walker <elwalker@...>wrote:

> Ahhh - JavaScript. The link calls a function which forces it to download or
> at least call the save dialogue box.
> What that code is directly - I'd have to look up ... but I've clicked on
> links like that before ...
>
>
> On Thu, Sep 4, 2008 at 3:01 PM, Ian Skinner <HOF@...> wrote:
>
>> Erika L. Walker wrote:
>> > What about with a normal a href link to the content?
>> That's what we got, but since the browser recognizes the extension it
>> plays the content rather then downloads it.  Apparently the desire is to
>> deliver the video to clients who want it, not just have them play it
>> streaming from our site.
>>
>> Is there any easy way to configure our setup so that the video is
>> downloaded by the browser not played with any plug-in whether or not
>> such a plug-in is available?
>>
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:649
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.29

Re: Configuring response header details.

by Erika L. Walker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For the record - there is a consensus that says it can be a security issue,
how I'm not sure as I don't use this stuff myself and haven't really
followed up on any of it.

Some people say this:

"The best way to solve this problem is to educate your users. Tell them to
"Right-click and select 'Save As...'.", or similar. It's simply not possible
to 'force' a download in all cases, especially because IE doesn't implement
HTTP properly (extraordinary behaviour for a browser!)."

On Thu, Sep 4, 2008 at 4:11 PM, Erika L. Walker <elwalker@...>wrote:

> Here's one used with .php ... it is possible to have a .php file on the
> server you use? Might be the best answer ...
>
> http://www.webmasterworld.com/forum88/8219.htm
>
>
> On Thu, Sep 4, 2008 at 4:09 PM, Erika L. Walker <elwalker@...>wrote:
>
>> Ahhh - JavaScript. The link calls a function which forces it to download
>> or at least call the save dialogue box.
>> What that code is directly - I'd have to look up ... but I've clicked on
>> links like that before ...
>>
>>
>> On Thu, Sep 4, 2008 at 3:01 PM, Ian Skinner <HOF@...> wrote:
>>
>>> Erika L. Walker wrote:
>>> > What about with a normal a href link to the content?
>>> That's what we got, but since the browser recognizes the extension it
>>> plays the content rather then downloads it.  Apparently the desire is to
>>> deliver the video to clients who want it, not just have them play it
>>> streaming from our site.
>>>
>>> Is there any easy way to configure our setup so that the video is
>>> downloaded by the browser not played with any plug-in whether or not
>>> such a plug-in is available?
>>>
>>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:650
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.29