working commit.  had to use curl to support TLS1.1/1.2 for HTTPS ... also fixed some forgotten imports and name changes