MiniVend Akopia Services

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

Re: [mv] Serving non-html files with minivend (or: software payloads)



Cameron,

Sounds like normal cgi http header (Content -type: text/html) is already being sent to the browser beforehand, otherwise it'd see the Content-type: application/zip and just download the file. I wonder if there's a facility in minivend to make it NOT send the http header in a particular instance.

I'm interested in how you managed to create the download store, as I've been put in charge of creating such a site. The minivend docs state that it should be a simple thing to setup, but I have not seen any examples, and a clear way to do this eludes me.

Can you please let me know how this works out? Better yet, any chance of seeing your code? :)

Cameron Oltmann wrote:

> ******    message to minivend-users from "Cameron Oltmann" <scrumper@earthling.net>     ******
>
> 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
> ===============================
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

--

Daniel Ceregatti

Programmer - Digital Savant

Phone: (323) 848-7964 x106
Fax: (323) 871-2499
7039 Sunset Blvd., Suite 200
Hollywood, CA 90028





Search for: Match: Format: Sort by: