Re: How'd They Do That?

by "Jens Brueckmann" <lists(at)j-a-b.net>

 Date:  Sun, 06 Feb 2005 23:57:58 +0100
 To:  "hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org>
 References:  localhost
  todo: View Thread, Original
On Sun, 06 Feb 2005 16:12:42 -0600, David Kendall  
<david(at)homepagesplus.com> wrote:

> How did they make it so that when you click to download it gives
> yout he option to save to your comptuer, rather than opening the
> file in another window?

Hi David,

this is done by adding the "Content-Disposition" header when the file is  
requested.
You can check this at
<http://cgi.w3.org/cgi-bin/headers?url=http%3A%2F%2Fresources.bravenet.com%2Faudio_clips%2Fclassic_hard_rock%2F10cc_-_im_not_in_love%2Fdownload%2F>

Some information about this header can be found at  
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1>

This header can be set with the help of a server-sided scripting language  
like PHP. How this is accomplished is described in  
<http://de.php.net/header>

Cheers,

jens


-- 
Jens Brueckmann
http://www.j-a-b.net/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA