Closed georgevanvliet closed 11 years ago
Mink is about emulating a browser. With a browser, you cannot send a POST request to a given url, you need to submit a form for this. If you want to test a REST api, use an API client (Buzz or Guzzle for instance), not a browser emulator.
Currently I cannot specify the request method that I want to use. For testing REST interfaces this is rather unfortunate :)
Currently all requests are set as 'GET' in BrowserkitDriver:
$this->client->request('GET', $this->prepareUrl($url));
Please allow for an optional parameter to specify the request method.