Re: Re: HTTP_download : open file in browser, not download

From: Date: Tue, 01 Jun 2004 09:55:14 +0000
Subject: Re: Re: HTTP_download : open file in browser, not download
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12810@lists.php.net to get a copy of this message
Hi Vincent Dupont, you wrote: > Hi Mike, thanks for your interest > > I send a PDF file and use the $dl->guessContentType(); to send the > mime type. I also tried $dl->setContentType("application/pdf"); with > same result. > > When selecting 'open' in the prompt, PDF is correctly opened in > Adbode PDF reader with both commands Within the browser (plugin) or is the reader starting externally? What do you mean by "both commands"? > I updated my PEAR packages to the lastest version of HTTP_Header and > HTTP_download (beta) The browser always display the prompt twice if I > click 'open' and only once if I click 'Save' Hm, give me a minute to test with IIS - do you run PHP as CGI or module? > what do you mean with the IE hack? i don't know this... Well, IE often gives the file extension more weight than the content type headers, so it's commonly used practice to fake a file extension in the download URL. Regards, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.general (#12810) next »