Adding support to define request method: GET or POST