Redirect providing postdata

Author Message

Dominik Pich

Wednesday 28 April 2004 12:42:19 am

I need to redirect to a page not on my server from a custom workflow.
No problem SO FAR but:
I need to pass the page I'm redirecting to POST-data.

How do I do that? Possible?
Thank you,
Dominik

Paul Forsyth

Thursday 29 April 2004 2:40:50 am

A couple of ways:

3.4 has new code to help with this, as shown in this snipped from pubsvn:

http://pubsvn.ez.no/viewcvs/ezp/trunk/lib/ezutils/classes/ezhttptool.php?r1=4713&r2=5441&p1=trunk/lib/ezutils/classes/ezhttptool.php&p2=trunk/lib/ezutils/classes/ezhttptool.php

But a far better way to use curl:

http://curl.haxx.se/

You need to configure php, on compile, to include the library, then you can just issue a few simple calls to the library from PHP to get your POST vars in there.

paul

--
http://www.visionwt.com

Dominik Pich

Thursday 29 April 2004 5:03:48 am

Used the method you applied in the worldpay gateway
Redirect from own workflow template

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.