location.protocol in client side, what about server side?