Prompting PDF to be saved not displyed in IE

Is there some code to prompt IE4 to show a dialogue box to allow Saving of a PDF file that is dynamically served, rather than from a link. I want the equivalent of right-clicking a text link on IE to be prompted on a transparent download so that the URL remains hidden.

Shiggz

ShiggzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ventolinCommented:
#!/usr/local/bin/perl

use CGI;
$query = new CGI;

print $query->header(-type => 'application/pdf',
        -status=>'200 OK');

$filename = 'test.pdf';
open (PDF, "$filename") or die $!;
while (<PDF>) { print $_; }
close (PDF);
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ShiggzAuthor Commented:
Doesn't work - Returns "Document contains no data" in Netscape and just hangs in IE4

Shiggz
0
ShiggzAuthor Commented:
Doesn't work - Returns "Document contains no data" in Netscape and just hangs in IE4

Shiggz
0
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

ventolinCommented:
u must have not installed it correctly. try:

perl -c file.pl

check for 755 permissions

path to perl

path to pdf

0
ShiggzAuthor Commented:
Nope - Checked all of that already
0
ventolinCommented:
must be something else, your server may not be configured correctly. here is this exact code in action:

nervepinch.com/cgi-bin/pdf.pl

0
ShiggzAuthor Commented:
It works as far as hiding the real URL of the PDF but it doesnot allow a "Save Target As" dialogue box in IE which is what I need - there is no way of saving this file as a PDF from IE to a local machine as the only options from "File>Save As" are HTML or TEXT.

Any ideas?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.