
Originally Posted by
HeleneWallis
i saw something in this forum about the Unsecure HTTP Endpoint Retirement, and there being a patch for that. I can't find it now, but when I got the USPS notice, I just searched the files for all the places where
http://production.shippingapis dot com was mentioned, and changed them to https. Is anything needed besides that? I have the 2017 version of the file, if that makes any difference.
From the updated module's _getQuote method:
PHP Code:
// Prepare to make quote-request to USPS servers
switch (MODULE_SHIPPING_USPS_SERVER) {
// -----
// 20200924 Update: USPS will be phasing out the http:// (non-secure) URL.
//
// Secure APIs: https://secure.shippingapis.com/ShippingAPI.dll
// Non-secure APIs: http://production.shippingapis.com
//
case 'production':
$usps_server = 'https://secure.shippingapis.com';
$api_dll = 'ShippingAPI.dll';
break;
case 'test':
default:
// 09-7-2014
//Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll
//Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll
$usps_server = 'https://stg-secure.shippingapis.com';
$api_dll = 'ShippingApi.dll';
break;
}