Test detection of http request method