on the fly document generation

Ajay abra9823 at mail.usyd.edu.au
Wed Aug 4 22:05:39 EDT 2004


hi!

i generate a document on the fly and then print it from my script. to force
the browser to show the 'save file' dialog rather than display the content
in  the browser, i have added the header Content-Type
print "Content-Type: application\n"
however when the save file dialog box comes up, it gives the script name
(in this case sfile.cgi) as the filename. how can i change that to a
different filename?

print "Content-Type: application; name="test.xml\n"

sorry its a little off-topic

thanks

cheers

--
Ajay Brar,
CS Honours 2004
Smart Internet Technology Research Group





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Python-list mailing list