The solution is to use the HTTP(S) API as described here…
The functions used in this sketch should also work fine with Edgent.
Pete.