method = POST
will work if you ‘post’ a form to the url /test.
if you type a url in address bar of a browser and hit enter, it’s always a GET
request, so you had to specify POST request.
Google for HTTP GET
and HTTP POST
(there are several others like PUT DELETE). They all have their own meaning.