Subject: | |
From: | |
Reply To: | COLE,GLENN (Non-HP-SantaClara,ex2) |
Date: | Wed, 1 Mar 2000 15:14:35 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I have a CGI that is invoked by a web user to retrieve an
Acrobat PDF file, but I'm not happy with the results.
The URL looks something like
http://.../getdoc.cgi?key=abc123
The CGI responds with
Content-Type: application/pdf
Content-Length: nnnn
actual PDF contents begin here...
Netscape Navigator 4.0 (an awful version) passes the filename
getdoc.pdf
to Acrobat on first invocation, then a "random" name like
VUICI8A4.pdf
on subsequent invocations, but with a different name each time.
I can live with this behaviour, because at least it knows the
file is a PDF.
MS Internet Explorer 4.0, on the other hand, feigns no knowledge
of the file type, and asks me what app to pick for
getdoc(1)
So the question is, is there a better way of telling the web
browser the name and/or type of the file?
With apologies for the off-topic nature of the post,
--Glenn
|
|
|