[wellylug] Question for apache gurus :-)

Damon Lynch damon at dev-zone.org
Fri Nov 1 19:32:44 NZDT 2002


Hi fellow wlugers,

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?

Thanks!
Damon




------------------------ 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