I am running zendsvr6 and we have php running that hosts our own website.

We would like to use the API's provided by shipping company UPS to get tracking information.

I am trying use some sample code provided by UPS and I am failing. We get an error message saying 'Connection Failed'.

I contact UPS and they said: UPS has upgraded the communication security protocols for all web-based applications. Please contact your company's IT department or development team to ensure that any security protocols currently used meet the TLS 1.2 requirement.
Effective January 18, 2018, UPS will only accept TLS 1.1 and TLS 1.2 security protocols. It is highly recommended that the most current version, TLS 1.2, be implemented.

try to run on a PHP 7 server. I had similar problems using the curl functions. I setup PHP on a hosting service ( a2 hosting ) and ran my code there. The functions worked. The install of the Zend PHP 7 basic server is no charge. And you can install it on the IBM i with the existing ZENDSVR6. PHP 7 will just run on port 10090. and in subsystem ZENDPHP7.