[wellylug] Question for apache gurus :-)

Donald Gordon don at dis.org.nz
Fri Nov 1 20:08:00 NZDT 2002


On 01 Nov 2002 19:32:44 +1300 Damon Lynch <damon at dev-zone.org> wrote:

> I have a CGI script that creates a CSV file, and I want to specify to
> the browser that it should be saved as an attachment with a certain file
> name.  This code causes mozilla to run a helper application in the
> window, without asking what to do: 
> 
> print 'Content-type: application/vnd.ms-excel; charset=iso-8859-1\n'
> 
> I thought if I have this instead (all on one line):
> 
> print 'Content-type: application/vnd.ms-excel; charset=iso-8859-1;
> Content-Disposition: attachment; filename=file.csv; ProgId:
> Excel.Sheet\n'
> 
> it would do what I'm after.  Instead, it does the same as the previous
> line.  Any ideas as to what should be there instead?

Presumably the easy way would be to take advantage of PATH_INFO (for
more info, read the CGI spec :-) and redirect them to

http://www.example.com/cgi-bin/thing-that-emits-CSV.cgi/file.csv

or something similar.

don

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/JjlUgA/vN2EAA/kG8FAA/0XFolB/TM
---------------------------------------------------------------------~->

  .-.   Wellington
  /V\   Linux
 // \\  Users       
/(   )\ Group
 ^^-^^
        http://wlug.paradise.net.nz/

To unsubscribe from this group, send an email to:
wellylug-unsubscribe at egroups.com
  

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 





More information about the wellylug mailing list