CURL should use the latest TLS version available, so if it supports TLS 1.2 it should be using it. Upgrading to 5.6 is a good option if that is the way your hosting company wants to fix it. The code should work on anything less than php 7.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.