osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

UPS XML Rates and Services v1.0

This is a discussion on UPS XML Rates and Services v1.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; For all of you that use GoDaddy as your hosting company. I searched for hours and days trying to find ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #1  
Old 08-07-2007, 07:41 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,112
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post UPS XML Rates and Services v1.0

For all of you that use GoDaddy as your hosting company. I searched for hours and days trying to find the solution to the timeout error. Its simple, thanks to JanZ; Simply add the following lines in catalog/includes/modules/shipping/upsxml.php after the following:

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest);
curl_setopt($ch, CURLOPT_TIMEOUT, (int)$timeout);
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);

add these lines:

//GODADDY STUFF
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
//END GODADDY STUFF

That solved my problem, hope it solves yours!

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/new-oscommerce-contributions/10127-ups-xml-rates-services-v1-0-a.html

Posted By For Type Date
GoDaddy Timeout Error Solution (Getting Timeout Errors Using Go Daddy as a Hosting Company) - Powered By Kayako SupportSuite This thread Refback 01-14-2008 06:59 AM

Similar Threads

Thread Thread Starter Forum Replies Last Post
UPS XML Rates and Services v1.0 michael_s New osCommerce Contributions 1 08-22-2007 01:19 PM
UPS XML Rates and Services v1.0 michael_s New osCommerce Contributions 0 06-21-2007 03:01 PM
UPS XML Rates and Services v1.0 michael_s New osCommerce Contributions 0 05-24-2007 12:01 PM
UPS XML Rates and Services v1.0 michael_s New osCommerce Contributions 0 02-02-2007 03:12 PM
UPS XML Rates and Services v1.0 michael_s New osCommerce Contributions 0 01-31-2007 02:54 PM


All times are GMT -8. The time now is 07:09 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax