insaini, on Apr 21 2008, 02:28 PM, said:
hmm.. well that does say libcurl 7.10 .. which isnt libcurl 7.16 .. but give it a go and see how it works out..
I did a fresh install of the module and it's still not working on GoDaddy, but it turns out I'll need to add a few lines of code re: a proxy server to get it to work:
"GoDaddy Help Center" said:
On our shared hosting, any CURL applications that make secure HTTP connections (HTTPS over port 443) need to pass through a proxy server. The address for this proxy server is proxy.shr.secureserver.net and connections must specify the use of port 3128. The code below already includes this information.
GoDaddy posted some sample code here:
Similarly, someone in an older Canada Post mod used the proxy server to get things working on GoDaddy:
I couldn't get this thing to work because I forgot to check and make sure that the proxy call in cURL was in the code. Added the needed lines and got it working.
He posted the fix here...
which seems to add an extra few lines of code to the mod:
//Next 2 lines for GoDaddy.com hosting accounts.
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");
Similarly, someone posted a similar fix for the Fed Ex module:
One of our clients was facing issue with the FedEx Module in osCommerce.
The site was running on Godaddy Hosting.
We disabled Fedex. Then in Fedex1.php, we changed the part that references godaddy to:
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY, “http://proxy.shr.secureserver.net:3128″);
Then enable the module again, and did a rate request, and that’s it.
All of this is a bit over my head - I'm hoping someone could give me a hint as to where I should insert these lines of code. The only "curl_setopt" reference I could find was in the ship_canadapost_ajax.php file (under Case 8, around line 481) but when I inserted these lines immediately after it, it didn't seem to do anything. I keep getting the same error, "Cannot reach Canada Post Server. You may refresh this page..."
Please help! I need to get our site online and this module is the last barrier before we can launch it. Thanks again insaini for all your hard work and suggestions...