Introduced detectServerProtocol() to fully support HTTPS and more use of isFullQualif...