More information about the Underscore mailing list

[_] Worldpay XML direct

Jonathan Matthew Burke imprecision at gmail.com
Fri Apr 15 10:18:34 BST 2011

On 15 Apr 2011, at 09:06, Tom Holder wrote:

> This makes sense, but how would you go about doing this with CURL in PHP
> which is how I'm submitting the XML? Is it something to do with the
> CURLOPT_COOKIEJAR parameter? From what I understand that lets me grab a
> cookie as it comes back? How do you resubmit it though?


Exactly right. Doing something like this would provide what you need:

$custom_cookie = 'cookie_' . $unique_reference . '.txt';

$c = curl_init($url);
curl_setopt($c, CURLOPT_COOKIEJAR, $custom_cookie);
curl_setopt($c, CURLOPT_COOKIEFILE, $custom_cookie);

-j