HTTP request using IP instead of URL

Using mbed-http library I am able to run samples and properly connect to an HTTPS server that has a URL. However, when I try to use an IP address of that same website, the connection fails. How can I use an IP address instead of a URL? This is necessary to connect to local devices on my network that are not assigned URLs by the DNS server.

HttpsRequest* post_req = new HttpsRequest(network, SSL_CA_PEM, HTTP_POST, “https://54.173.235.109/post”);

Issue is resolved an unrelated to the IP address, format shown is correct. It was an issue with the SSL certificate and worked around by removing verification as described in this post: TLS error making an HTTPS post to an Azure VM's web service

Great that you already resolved it, but yes, mbed-http does not care whether you pass in a domain name or an IP address.