This is a small script that uses netcat in order to connect to a remote web server and to discover which HTTP methods supports.You can see below the source code:
for webservmethod in GET POST PUT TRACE CONNECT OPTIONS PROPFIND;
printf "$webservmethod " ;
printf "$webservmethod / HTTP/1.1\nHost: $1\n\n" | nc -q 1 $1 80 | grep "HTTP/1.1"
In the next image you can see the script in use: