in reply to HTTP 1.1 (trace, delete) Method help
Given this description from RFC 2616:
The TRACE method is used to invoke a remote, application-layer loop- back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response.
I think it should be fairly simple to extend HTTP::Request::Common and add a TRACE method. A quick and dirty example:
$ua = LWP::UserAgent->new; $res = $ua->request(HTTP::Request::Common::_simple_req('TRACE', 'http: +//localhost/')); if ($res->is_success) { print "content is ", $res->content; } else { print '$res is ', $res->message, "\n"; }
I haven't a clue about DELETE method, mostly because it isn't supported natively by Apache and I don't know how to test it. Any suggestions from other monks?
Ciao, Valerio
|
|---|