HTTP request using IP instead of URL

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