If you want the user to be prompted to save the data you are sending, such as a generated PDF file, you can use the Content-Disposition header to supply a recommended filename and force the browser to display the save dialog.
"Content-Disposition: attachment; filename=dl.mp3" On Mon, 12 Aug 2002 07:46:27 +0800, [EMAIL PROTECTED] (Connie Chan) wrote: >I have a script that read and then print a binary file on runtime, >which actually mean to a file is for download. > >I mean, not like this : <a href="here_a_file.zip">Download</a>. > >However, I don't know how to give a name for the file. > >I've use this header : print "Content-type: audio/mp3\r\n\r\n"; >and my script 's name is dl.pl. > >When I start to download the file, my browser alert if I want to >save "dl.mp3" . Why the extension can come out, but nowhere for me >to assign the file name ? > >Could any body tell me what is the story ? >and how to give a certain name for the file ? > >Rgds, >Connie > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]