The http request method can now be parametrized

A new option 'method' is now supported so any http request method can be used to perform the ping (we're interested in using the 'OPTIONS' method...).