I try to implement a very simple Garmin Connect IQ app that downloads some tiny json data from a webservice. Webservice authentication is HTTP basic.
I try to implement it like this:
var authString = StringUtil.encodeBase64("someusername:somepassword");
authString = "Basic " + authString;
Comm.makeWebRequest(
"somewebserviceurl,
{
},
{
"Headers" => { "Authorization" => authString }
},
method(:onReceive)
);
It does not fetch the response, responsecode is 0, so it is not informative at all. If I try calling any webservice that does not need any authentication, it works, so the problem is the basic authentication.
What can be the problem? Thanks very much in advance!