Hi All, Is it just me or has this list been really quiet recently? Can anybody tell me how to output PDF files to a browser properly? Specifically, I'm having trouble getting Internet Explorer to recognise them as PDFs. This, for example: #!c:\perl\bin\perl.exe use warnings; use strict; my $filename="c:\\temp\\mypdf.pdf"; my $data; print "content-type:application/pdf\n\n"; open (PDFFILE,"<$filename") or die "$!\n"; binmode PDFFILE; binmode STDOUT; my $size = -s "$filename"; read PDFFILE,$data,$size || die"$!\n"; close PDFFILE; print $data; Works perfectly when accessed using Mozilla. Using IE, I just get a screen full of garbage. If I use a URL that ends in ".pdf", it works. eg, instead of http://localhost/cgi-bin/mime.cgi, use http://localhost/cgi-bin/mime.cgi?fred.pdf. All works fine. Is this a bug in my browser, or am I overlooking something here? I find the same problem with MS-Word documents. I need to have a paramater which ends in ".doc" in order to have IE open a word doc automatically. Regards, Leigh Leigh Sharpe Network Systems Engineer Pacific Wireless Ph 9584 8966 Mob 0408 009 502 email lsharpe@pacificwireless.com.au web www.pacificwireless.com.au