[imp] Download links

Chuck Hagenbuch chuck at horde.org
Tue Dec 3 00:23:30 2002


Quoting Michael M Slusarz <slusarz@bigworm.colorado.edu>:

> Here is my proposed solution... Since we already require the webserver we
> are running to recognize index.php as the default webpage for a directory,
> we should create a directory under horde (named view/ or download/) that
> contains a single index.php file.  Browser::downloadHeaders() then
> creates a link to this directory (e.g.
> www.example.com/horde/download/?param1=value1;param2=value2).  This
> index.php simply includes the relevant module's view.php file and the
> file gets downloaded.  Since there is no ".php" anywhere in the URL using 
> this method, the browser is forced to use either the filename passed to it 
> as the last parameter (as we do currently), or it uses the 
> Content-disposition header sent to it.

Sounds good to me - nice thinking!

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"People ask me all the time what it will be like living without otters."
 - Google, thanks to Harpers


More information about the imp mailing list