MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Serving non-html files with minivend (or: software payloads)



Hi all,

I am setting up a site from which I wish to deliver electronic payloads upon
successful completion of an order.  I have it almost working, but have run
into a small problem.  I can deliver the payload via a script page with an
include directive, but the browser just treats it as text and dumps it to
the screen.  I need to somehow tell the user's browser that the file should
be downloaded rather than displayed.  Essentially, I need to tell it that it
is an application rather than text.  Currently, I have a link that points to
a page which is just a short minivend script that serves the payload if the
user has the right to download it.  Here's the code for the page:

Content-type: application/zip

[file name="payloads/[scratch name='[data session arg]Payload']"]

(Yes, I know the code is crude, but I need to get this working.  I can
pretty it up after it's functional)
This results in the top line appearing in the browser window, along with the
contents of the payload file.  I added the first line in hopes that the
browser would interpret the page differently, but I assume Minivend is
already adding a "Content-type: text/html" to the beginning.
So here's my question:  How do I do any of the following:
1) Make the browser think the file is anything other than text.
2) Make minivend serve a non-html page
3) Make minivend handle software payloads

Any help/criticism is greatly appreciated.  Thanks, all.

===============================
Pounding away on my keyboard
in the dark.

                    Cameron
-------------------------------
email: scrumper@earthling.net
ICQ: 13571506
===============================



Search for: Match: Format: Sort by: