fix an error that choose a wrong protocol

Should use http when there ware no -S option.