I have some code that is not working like I think it should...
local http = HTTPC("api.mlab.com", 443);
When run that generates an error message "cannot connect to host".
However, I am able to do this in a browser:
And it works...
I've tried various combinations to try to make it work based on the HTTPC documentation but no luck. I think it may be because if I just try https://api.mlab.com/ in the browser it gives me a not authorized error. I've tried putting in the apiKey parameters, etc., when instantiating the HTTPC object but I haven't gotten it to work.