Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

did ups change there website?


ron401

Recommended Posts

Posted

I am currently using UPS Choice v1.8 for osCommerce 2.2 MS2 Contributed 2003/08/02. (currently i can not find an update for it)

Before the first of the year it worked fine. Now I am getting this error.

United Parcel Service 

We are unable to obtain a rate quote for UPS shipping.

Please contact the store if no other alternative is shown.

This is what the code looks like. (hopefuly it will show up)

      $http = new httpClient();

      if ($http->Connect('www.ups.com', 80)) {

        $http->addHeader('Host', 'www.ups.com');

        $http->addHeader('User-Agent', 'osCommerce');

        $http->addHeader('Connection', 'Close');

 

        if ($http->Get('/uis/create?loc=en_US' . $request)) $body = $http->getBody();

 

        $http->Disconnect();

      } else {

        return 'error';

      }

any ideas?

Thanks in advance.

Posted

you will need to check with ups if they changed their api

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...