Also folks,
I'm using a godaddy hosted account. I haven't tested the curl section out, but I think the modifications go something like this:
Code:
$clientURL = curl_init();
curl_setopt($clientURL, CURLOPT_POST, 1);
curl_setopt($clientURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($clientURL, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($clientURL, CURLOPT_URL, $qbmsURL);
curl_setopt($clientURL, CURLOPT_TIMEOUT, 60);
curl_setopt($clientURL, CURLOPT_HTTPHEADER, $PHP_Header);
curl_setopt($clientURL, CURLOPT_POSTFIELDS, $qbmsRequest);
curl_setopt($clientURL, CURLOPT_VERBOSE, 1);
curl_setopt($clientURL, CURLOPT_SSL_VERIFYPEER, 1);
// if (MODULE_PAYMENT_QBMS_HOSTEDORDESKTOP == 'Hosted') {
// curl_setopt($clientURL, CURLOPT_SSLCERT, $qbmsCert);
// }
curl_setopt($clientURL, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); //??
curl_setopt ($clientURL, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($clientURL, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
// if (MODULE_PAYMENT_QBMS_IP_ADDRESS != '') {
// curl_setopt($clientURL, CURLOPT_INTERFACE, MODULE_PAYMENT_QBMS_IP_ADDRESS);
// }
Notice I added the proxy stuff.
I hope it works. They don't have an emoticon for crossing your fingers.
$qbmsResponse = curl_exec($clientURL);
Bookmarks