Subject: | HTTP::DAV::open steps on HTTP response code |
The 405 response to an invalid resource is stepped on in HTTP::DAV::open
by the call to www_authenticate. The dumps are after the execution of
each line of code.
$dirurl = "http://valid.dav.server:good_port/bad_content_root
open($dirurl)
in the package:
652: my $response = $resource->propfind(-depth=>0);
'title' => '405 Method Not Allowed'
'_msg' => 'Method Not Allowed'
'_protocol' => 'HTTP/1.1'
'_rc' => 405
656: if ($response->www_authenticate) {
'_msg' => 'OK'
'_protocol' => 'HTTP/1.1'
'_rc' => 200
Thus, in the case of a 405 code, the client is lead to believe that a
200 response is in order.
This was done as a test of a bad content root on the apache mod_dav
server. If the content root there is set correctly, then the 404 makes
its way back to the client.
-marc
This is perl, v5.8.5 built for i686-linux-thread-multi
perl v5.8.5 | 2002-04-13 | HTTP::DAV(3)
Linux ubuntu 2.6.22-15-generic #1 SMP Tue Jun 10 09:21:34 UTC 2008 i686
GNU/Linux