Forums / Developer / Redirect providing postdata

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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