ofaniel Posted June 13, 2007 Share Posted June 13, 2007 Hello all. I have been searching all over for a fix to the No Response problem when cURL w/SSL is installed. This is specifically for: http://www.oscommerce.com/community/contri...search,airborne Add this around line 406 in dhlairborne.php curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); So you should have something like: if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://eCommerce.airborne.com/$api"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "$request"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Added in 1.401 fix // curl_setopt($ch, CURLOPT_CAINFO, 'C:/apache/bin/curl-ca-bundle.crt'); By the way, I found this solution here: http://209.85.165.104/search?q=cache:7OmDF...&lr=lang_en Can someone (maybe the original developer - thanks for this btw!!), see if this is a candidate to be added to the official contribution? Hope this helps! Chuck Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.