Check server protocol prior to HTTP redirect