", apikey = "") {
        let rtext = "";

        function inner_post(url, json, content_type = "", apikey = "") {
            let xhttp = new XMLHttpRequest();
            xhttp.open("POST", url, true);
            if (content_type) {
                xhttp.setRequestHeader(`Content-Type`, content_type);
            }
            if (apikey) {
                xhttp.setRequestHeader(`X-Api-Key`, apikey);
            }
            xhttp.send(json);
            return xhttp;
        }

        let data = inne