You can't force a user to call another page by POST except with some trick
javascript magic. The RFC are vague about what happens when a user POSTs to
a site and then gets a 301/302 redirect. This ambiguity is a source of
problems for many, many years (303 was created to address this ambiguity).

The whole thing seems a little weird to me. Are you sure you are reading the
documentation for VCS correctly?  Take a look at getpaid.pxpay for a very
similar system. This sends the user offsite, but first sets up the
transaction with a POST between your site and the payment processor. The
user doesn't POST though, they just GET with the pre-agreed parameters
between your site and the processor.

regards,
Darryl Dixon
Winterhouse Consulting Ltd
http://www.winterhouseconsulting.com


On Sat, Mar 14, 2009 at 1:36 AM, hannesc <[email protected]> wrote:

>
> Ah, right. Well, perhaps you can help. How would I send POST data
> using REQUEST.RESPONSE.redirect? I tried searching the Python
> documentation, but couldn't find anything.
>
> On Mar 13, 2:31 pm, Lucie Lejard <[email protected]> wrote:
> > Are you sure that urlib2.urlopen is supposed to redirect you to some
> place?
> > When I read the doc about it, it says: "This function returns a
> > file-like object with two additional methods".
> > It doesn't seem like it is supposed to redirect you to a page. If you
> > want to redirect, you can use REQUEST.RESPONSE.redirect.
> >
> > Lucie
> > --
> > S i x  F e e t  U p ,  I n c .  |  http://www.sixfeetup.com
> > Phone: +1 (317) 861-5948 x605
> > ANNOUNCING the first Plone Immersive Training Experience | Sept.
> 10-11-12, 2009http://www.sixfeetup.com/immerse
> >
> > On Fri, Mar 13, 2009 at 6:25 AM, hannesc <[email protected]> wrote:
> >
> > > Hey guys
> >
> > > So I am developing a new payment processor that needs to redirect the
> > > user to an external site that does the credit card validation.
> > > Everything seems to be working fine untill the redirect needs to
> > > happen. The problem is that, well, it doesn't.
> >
> > > The code of vcs.py looks like so:http://paste.plone.org/26922
> >
> > > I have highlighted the line where it should redirect. I am using
> > > urllib2, as I need to send the arguments as POST.
> >
> > > Anyone have any ideas?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"getpaid-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to