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:

#!/bin/bash

for webservmethod in GET POST PUT TRACE CONNECT OPTIONS PROPFIND;

do
printf "$webservmethod " ;
printf "$webservmethod / HTTP/1.1\nHost: $1\n\n" | nc -q 1 $1 80 | grep "HTTP/1.1"

done

Source Code

Source Code

 

In the next image you can see the script in use:

Demonstration

Demonstration