Fork of SandBox's original mbed-http (https://os.mbed.com/teams/sandbox/code/mbed-http/) and update for MbedOS6+ Content of TESTS folder was replaced with basic examples form original SandBox's HelloWorld

Revision:
40:6ecb52cd17d9
Parent:
37:98d83ca14b7b
--- a/source/https_request.h	Mon Aug 12 11:45:31 2019 +0200
+++ b/source/https_request.h	Sat May 29 18:34:24 2021 +0000
@@ -59,6 +59,8 @@
         _socket = new TLSSocket();
         ((TLSSocket*)_socket)->open(network);
         ((TLSSocket*)_socket)->set_root_ca_cert(ssl_ca_pem);
+        network->gethostbyname(_parsed_url->host(), &address);
+        address.set_port(_parsed_url->port());
         _we_created_socket = true;
     }
 
@@ -90,8 +92,8 @@
     virtual ~HttpsRequest() {}
 
 protected:
-    virtual nsapi_error_t connect_socket(char *host, uint16_t port) {
-        return ((TLSSocket*)_socket)->connect(host, port);
+    virtual nsapi_error_t connect_socket(SocketAddress addr) {
+        return ((TLSSocket*)_socket)->connect(addr);
     }
 };