Tested this with my test-client.pl script here, and as you said, doing PUTs with a proper header does lead to CGI.pm parsing out PUTPARAM. (As a sidenote, what will CGI.pm parse out on other methods like PROPFIND? PROPFINDDATA??)

Problem is, if you intend to use this all here for WebDAV, you can't control the clients behaving nicely. For example, gvfs, GNOME's DAV client - as I see it - does not set any headers on requests...
%ENV = { 'SERVER_NAME' => 'dav.example.com', 'REQUEST_METHOD' => 'PUT', 'CONTENT_LENGTH' => '372', 'SERVER_SOFTWARE' => 'Apache', 'QUERY_STRING' => '', 'REMOTE_PORT' => '29701', 'HTTP_USER_AGENT' => 'gvfs/1.6.1', 'SERVER_PORT' => '80', 'SERVER_SIGNATURE' => '', 'REMOTE_ADDR' => '**.***.***.***', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'REQUEST_URI' => '/test.file', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_ADDR' => '**.***.***.***', 'SCRIPT_URL' => '/test.file', 'DOCUMENT_ROOT' => '/var/www/server/', 'HTTP_HOST' => 'dav.example.com' }; '__QUERY_OBJ' => bless( { '.parameters' => [ 'PUTDATA +' ], '.globals' => { 'DEBUG' => +0, 'NO_UNDEF_P +ARAMS' => 0, 'NO_NULL' = +> 1, 'FATAL' => +-1, 'USE_PARAM_ +SEMICOLONS' => 0, 'PARAM_UTF8 +' => 0, 'DISABLE_UP +LOADS' => 0, 'USE_CGI_PM +_DEFAULTS' => 0, 'NPH' => 0, 'POST_MAX' +=> 1024, 'HEADERS_ON +CE' => 0 }, '.path_info' => '', 'PUTDATA' => [ 'garbled mes +s' ], '.fieldnames' => { 'PUTDATA +' => 1 } }, 'CGI::Simple' ),

In reply to Re^4: Are all .cgi helper modules unfit for http methods common in REST? by isync
in thread Are all .cgi helper modules unfit for http methods common in REST? by isync

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.