HTTPClient defaults to protocol of document.location