Get protocol from HTTP_X_FORWARDED_PROTO header