Open damienalexandre opened 11 years ago
Unfortunately, it is not possible to indicate the method to the Mozilla API called by SlimerJS... We should patch Gecko.
Note that Firefox nor Chrome don't support <form method="put">
, so it does not make sens to open a webpage with the "put" method. Probably it's better to do your tests with xmlHttpRequest instead.
Too bad :( Thank for the XmlHttpRequest idea anyway.
I use SlimerJS inside CasperJS for tests, both as an HTTP Client for API's and a browser for webpages.
When trying to run a PUT HTTP request, but the server receive a POST, here is a script to test it:
casperjs test --engine=slimerjs /full/path/to/failer.js
The result will be:
With PhantomJS I get the expected result:
I run CasperJS version 1.1.0-DEV and SlimerJS 0.8.2.