it doesn't work for me.. not sure why!? here my code in ups.php. What did I do wrong?
'19_destPostal=' . $this->_upsDestPostalCode,
'22_destCountry=' . $this->_upsDestCountryCode,
'23_weight=' . $this->_upsPackageWeight,
'47_rate_chart=' . $this->_upsRateCode,
'48_container=' . $this->_upsContainerCode,
'49_residential=' . $this->_upsResComCode));
$http = new httpClient();
/* if ($http->Connect('www.ups.com', 80)) { */
if ($http->Connect('ssl://www.ups.com', 443?)) {
$http->addHeader('Host', 'www.ups.com');
$http->addHeader('User-Agent', 'osCommerce');
$http->addHeader('Connection', 'Close');
if ($http->Get('/using/services/rave/qcostcgi.cgi?' . $request)) $body = $http->getBody();
$http->Disconnect();
} else {
return 'error';
}
$body_array = explode("\n", $body);