Improvement: allow to send not only get requests

In the current version, only GET requests can be test. I added an parameter to set the request method. In default it is GET.