Local HTTPS Server test
HTML
<pre></pre>
JavaScript
function get(url) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
document.querySelector('pre').innerHTML += this.response;
};
xhr.onerror = function() {
document.querySelector('pre').innerHTML += 'XHR ' + url + ' failed with status ' + this.status + '\n';
}
xhr.open('GET', url);
xhr.send(null);
}
document.querySelector('pre').innerHTML = window.location + '\n';
get('https://127.0.0.1:80');
get('https://127.0.0.1:1012');