HP3000-L Archives

March 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"COLE,GLENN (Non-HP-SantaClara,ex2)" <[log in to unmask]>
Reply To:
COLE,GLENN (Non-HP-SantaClara,ex2)
Date:
Wed, 1 Mar 2000 15:14:35 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
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

ATOM RSS1 RSS2