Hi,
I am trying to make a web request that requires basic authentication, but if fails with -1001 error in the CIQ simulator.
My URL is https with a valid certificate from Let's Encrypt.
My code looks like this:
function makeRequest() as Void {
var options = {
:method => Communications.HTTP_REQUEST_METHOD_GET,
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
:headers => { "Authorization" => "Basic my-base64-encoded-user:pass" }
};
Communications.makeWebRequest( "https://mydomain.com", null, options, method(:onReceive) );
}
The request works in Postman, but I cannot get it to work from the Garmin CIQ simulator.
What am I doing wrong here?