This works for me on 4 Pro PM with latest FW.
Code
let Auth = {authorization: "Basic <credentials base64>"};
let DataURL = "https://somedomain.com/controlpage.php";
Shelly.call("HTTP.Request",
{ method: "GET", url: DataURL, headers: Auth },
function (res, error_code, error_msg, ud) {
if (!error_code) {
if (res.code === 200) {
<parse result>
<do something>
} else { print("HTTP Status code", res.code); }
} else { print("Error", error_code, error_msg); }
},
null
);
Alles anzeigen