compare request method and secure mode later.