MiniVend Akopia Services

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

Emptying a cart via an HTTP request?



******    message to minivend-users from "Bill" <bplst@webbsite.com>     ******

I need to empty all of the items out of the shopping cart from an external
CGI script (not on the same server as Minivend).  The only way I could
think of to do this is to put the following code:

[perl arg="carts"]
$Safe{carts}->{main} = [];
[/perl]

on a page named empty.html.  Then I have the other CGI program make a HTTP
request for the page using a URL like:

http://shop.mycart.com/cgi-bin/rosmarino/empty?Vz4CrmYu;;2345

This URL is generated with a minivend [area empty] tag and passed to the
other CGI program.  When I do this (execute the other CGI program), the
cart doesn't empty (it's not empty when I check it by pulling up the
ord/basket page).  However when I punch in the URL manually into a browser,
it does empty! 

What am I missing here?  Is there some difference between the browser
making the HTTP request and another CGI program doing it?  The only thing I
can think of is that it might have soemthing to do with cookies (I do have
them enabled).  Maybe my HTTP request is different from the browser's and
that makes the difference.  I wouldn't think so, but...  Does anyone have
any idea how I might be able to get this done?


---------------------------------------------------------------------------
Bill Herring
bplst@webbsite.com
--------------------------------------------------------------------------- 
-
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


Search for: Match: Format: Sort by: