Added option to specify url request method