Re: Re: HTTP_Download

From: Date: Tue, 20 Apr 2004 12:00:40 +0000
Subject: Re: Re: HTTP_Download
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11972@lists.php.net to get a copy of this message
Tuesday, April 20, 2004, 1:00:19 PM, you wrote: MW> Hi Sebastian Baran, you wrote: >> Hi all! >> >> Has somebody tried to use HTTP_Download to send PDF file as 'inline'? >> I'm just trying to do that and I get following error: >> 'HTTP_RANGE' => 'bytes=628970-630121, 645439-645919, 7913-102580' MW> HTTP_Download should ignore composite Range headers, but it MW> seems that it doesn't catch this particular situation. MW> Could you please test if attached version fixes your problem? Thanks for your help. New version's working well. But.. Well, I'm confused - after reboot (reboot of my test server - apache@win2k), old version started to work either. I have no idea why it's working now and before not. Anyway, I'll use the one sent by you - thanks! If I could have one more question - about guessContentType() method. I can't get it to recognize PDF nor RTF/DOC files. It returns false or text/plain (for MSWord docs). I tried with magic.mime file bundled with PHP as well as with the one with Apache server. For HTML files it works ok. I know it's mime_content_type() issue but maybe you know if it's possible somehow to make use of it. Or do I have to set content type manually? Best regards, Sebastian

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