+---------- On Jan 24, Ramin Naimi said:
> the browser pops up the dialog box asking whether to download/open from
> location and the file name is set to myget.adp (rather than 1.abc).

A common way to do this, if Peter's content-disposition suggestion is
inadequate, is to use ns_register_proc to register the script for a
whole hierarchy of URLs.  Then the page that links to the script can
append the desired name to the end of the URL.

For example, you register your script to handle all URLs beginning with
/download.  Then other pages can link to /download/software.zip, or
/download/smut.jpg, or whatever.  The script will be called in any case,
and the browser will use the last component of the URL.

Reply via email to