Properly generate requests with non standard HTTP methods, close #2387