How to do a HTTP (not HTTPS) web request?

Hi,

Is there a way to make a HTTP request from all platforms via makeWebRequest?

It seems with the Garmin Connect IQ SDK HTTP is supported only on iOS, and with Android HTTPS is required, and the server needs to have a valid certificate? It seems also the CIQ Simulator only works with HTTPS links.

I would like to write an app that displays data from evcc, an open-source software for charging electric vehicles with solar power.

That software runs in your local home network, has a REST API but does not implement HTTPS but only HTTP. For remote access they recommend a VPN solution like Tailscale.

Personally I am on iOS and already made HTTP calls via the APICall app to our local openHAB server. However, now I started coding my own app for evcc, and when trying to access my local instance via HTTP, I get an -1001 error. Tried some HTTPS calls and they work.

Any ideas or suggestions?

Regards, Robert