Detect protocol on 301/302