Subject: | |
From: | |
Reply To: | |
Date: | Thu, 4 Sep 1997 12:58:03 -0400 |
Content-Type: | Text/Plain |
Parts/Attachments: |
|
|
In <[log in to unmask]> [log in to unmask] writes:
> At 09:28 AM 9/4/97 -0400, Doug Werth wrote:
> >You can get it at http://www.beechglen.com/pub/sf2html.trk or visit our
> >downloadable software page at http://www.beechglen.com/bgutils.html
>
> So, being a shameless seeker after freebies, I tried this. Rather than
> offering me a download destination, it tried to interpret the results as
> html. Not very pretty.
> So, how do I fool my Netscape browser into trying to download this file,
> rather than simply rendering it?
If the file is pure PCL (i.e. not just a text spoolfile) then you likely need
to treat it as a binary file on the server. Set the file up so that (for
instance) it has an extension that the web server recognizes as a binary file
then when the browser reads it, the server will identify it as a binary file
and prompt/offer to download vs. view the file. (this means that script you
were trying won't help -- since I believe it was just designed for text-type
spoolfiles and not PCL files anyway).
I forget which file it is (MIME TYPES I believe) on your web server which
identifies file types and determines the labels that the server will send to
the browser for them.
As an example; if you were running a web server on your 3000, simply copied
the spoolfile into the web server's domain(directory) calling it something
like Onnn.PCL, and set up a PCL type in your MIME types file so it maps to
APPLICATION/OCTET-STREAM. (You could even make up your own type theoretically
and configure your browser with a specific application/viewer).
-Chris Bartram
|
|
|