in reply to Re^2: Are all .cgi helper modules unfit for http methods common in REST?
in thread Are all .cgi helper modules unfit for http methods common in REST?
Gotcha. Okay ... I normally use bare-bones CGI::Application and do something like this:
I have no idea if PROPFIND would work or not (I'm pretty much WebDAV ignorant). I do believe you still have problems with marshalling (CGI will try to copy that 2G POST/PUT into a scalar and that will probably not go well.package MyApp; use base 'CGI::Application'; .... sub setup { my $self = shift; my $cgi = $self->query(); $self->start_mode( $cgi->request_method() ); $self->run_modes( 'PUT' => 'create', 'GET' => 'retrieve', 'POST' => 'update', 'DELETE' => 'delete', 'AUTOLOAD' => 'method_not_supported' ); return; } .... 1;
|
|---|