$mech->delete($uri);

Ovid on 2008-08-05T10:19:28

With a Test::WWW::Mechanize::Catalyst instance, I recently had to do the following to send a DELETE:

$mech->request(
    HTTP::Request::Common::_simple_req( DELETE => $uri )
);

Give that this isn't too unusual for REST, what did I miss?


Done

jplindstrom on 2008-08-05T12:06:56

That I already did that locally (use PIPTest::Mechanize), and that I submitted a wishlist against libwww which is supposed to be fixed in the next release.

I guess Mechanize needs to support it as well though, now that it has support for it in libwww.