Added setAllowPost().