<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=858284006-19062006><FONT face=Arial size=2>Hi 
All,</FONT></SPAN></DIV>
<DIV><SPAN class=858284006-19062006><FONT face=Arial size=2>&nbsp;Is it just me 
or has this list been really quiet recently?</FONT></SPAN></DIV>
<DIV><SPAN class=858284006-19062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=858284006-19062006><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=858284006-19062006><FONT face=Arial size=2>This, for 
example:</FONT></SPAN></DIV>
<DIV><SPAN class=858284006-19062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;#!c:\perl\bin\perl.exe<BR>&nbsp;use 
warnings;<BR>&nbsp;use strict;<BR>&nbsp;my 
$filename="c:\\temp\\mypdf.pdf";<BR>&nbsp;my $data;<BR>&nbsp;print 
"content-type:application/pdf\n\n";<BR>&nbsp;open (PDFFILE,"&lt;$filename") or 
die "$!\n";<BR>&nbsp;binmode PDFFILE;<BR>&nbsp;binmode STDOUT;<BR>&nbsp;my $size 
= -s "$filename";<BR>&nbsp;read PDFFILE,$data,$size || die"$!\n";<BR>&nbsp;close 
PDFFILE;<BR>&nbsp;print $data;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=858284006-19062006>Works perfectly when 
accessed using Mozilla. Using IE, I just get a screen full of garbage. 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=858284006-19062006></SPAN></FONT><FONT 
face=Arial size=2><SPAN class=858284006-19062006></SPAN></FONT><FONT face=Arial 
size=2><SPAN class=858284006-19062006>If I use a URL that ends in ".pdf", it 
works. eg, instead of <A 
href="http://localhost/cgi-bin/mime.cgi">http://localhost/cgi-bin/mime.cgi</A>, 
use <A 
href="http://localhost/cgi-bin/mime.cgi?fred.pdf">http://localhost/cgi-bin/mime.cgi?fred.pdf</A>. 
All works fine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=858284006-19062006>Is this a&nbsp;bug 
in my browser, or am I overlooking something here?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=858284006-19062006>I find the same 
problem with MS-Word documents. I&nbsp;need to have a&nbsp;paramater which ends 
in&nbsp;".doc" in order to have IE open a word doc 
automatically.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=858284006-19062006>&nbsp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV><FONT face=Arial 
size=2>Regards,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Leigh</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Leigh Sharpe<BR>Network Systems Engineer<BR>Pacific 
Wireless<BR>Ph 9584 8966<BR>Mob 0408 009 502<BR>email <A 
title=mailto:lsharpe@pacificwireless.com.au 
href="blocked::mailto:lsharpe@pacificwireless.com.au">lsharpe@pacificwireless.com.au</A><BR>web 
<A title=http://www.pacificwireless.com.au/ 
href="blocked::http://www.pacificwireless.com.au/">www.pacificwireless.com.au</A></FONT></DIV></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>