Hi DrByte,
I have just tried the following:
Code:
function doCurlCurrencyRequest($method, $url, $vars) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
// curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
if (strtoupper($method) == 'POST') {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
}
// if (CURL_PROXY_REQUIRED == 'True') {
// curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, true);
// curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
// curl_setopt ($ch, CURLOPT_PROXY, CURL_PROXY_SERVER_DETAILS);
// }
I tried this to see if it would make a difference in my response, but the response is still the same:
Warning: The primary exchange rate server (oanda) failed for US Dollar (USD) - trying the secondary exchange rate server.
Error: The exchange rate for US Dollar (USD) was not updated via xe. Is it a valid currency code?
Is there anything (short from a manual update) that I can try?
Goshawk