Michael,

To change the MIME type being sent from a Perl script, if you are using
CGI.pm, just add the -type parameter. For example:
 print header( -type=>'application/octet-stream' );

I wrote a script that would begin a download by using the Content-
Disposition header. However, I had to manually send the header 
because CGI.pm wouldn't work for me. Perhaps it was a bug in an older
version I was using at the time.

To do it manually, use the following and set $mime_type to whatever 
value you want (see W3C website for complete list):
 print "Content-type: $mime_type\n";

HTH,
William

Reply via email to