Custom Process PHP, cURL and caching...
Content
Does any caching occur on the RightNow side when using cURL in a custom process script? I have a custom process on Contact Update with the important bits of the script below.
Obtain values...
$contactId = $obj->ID;
$retailerUsername = $obj->CustomFields->Retailer->Username;
$retailerPassword = $obj->CustomFields->Retailer->password;
$retailerId = $obj->CustomFields->c->storerefnum;
Build array...
$post = array(
'app_key' => $app_key,
'contact_id' => $contactId,
'email' => $retailerUsername,
'password' => $retailerPassword,
'retailer_id' => $retailerId
);
cURL stuff...
load_curl();
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL, $url);
curl_setopt($cURL, CURLOPT_POST, 1);
curl_setopt($cURL, CURLOPT_POSTFIELDS, $post);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);