Solved the problem. Needed to set the two properties "piRemotePort" and "peTransferFlags" in the cHttpTransfer object for SSL and changed the "host" to the url.