http mode for get & post