HTTP_Download strange output

From: Date: Tue, 23 Mar 2004 23:03:00 +0000
Subject: HTTP_Download strange output
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11461@lists.php.net to get a copy of this message
Hello Mike, I am trying to use the HTTP_Download class, and instead of getting a file for download when I execute my code I am getting some strange output, like the following: 4F\c=t˜€Õž4mi®<ă‡xð‑âÁC<ă‡xð‑âÁC<ă‡xð‑âÁC<~ö _____ Fe4­ endstream endobj 3026 0 obj<> endobj 3027 0 obj<<< PieceInfo<< 53 Metadata 55 StructTreeRoot 50 PageLabels Catalog Type 17 I am using the following code to attempt to download the file: <?php require_once("HTTP/Download.php"); $file = "../docs/15/doc.pdf"; $dl =& new HTTP_Download(); $dl->setFile($file); $dl->setContentDisposition(HTTP_DOWNLOAD_ATTACHMENT, 'download'); $dl->setContentType('application/x-octetstream'); $dl->send(); ?> I have tried setting the content type to text/html, application/pdf, and application/x-download, but to no avail. Do you have any idea what I might be doing wrong? Elliot

« previous php.pear.general (#11461) next »