in reply to Re: REST Webservices
in thread REST Webservices and CGI.pm
Thanks rhesa but CGI is not going to handle the PUT data. From CGI where POSTDATA is set:
and further down in the comments:if ($meth eq 'POST' && defined($ENV{'CONTENT_TYPE'}) && $ENV{'CONTENT_TYPE'} !~ m|^application/x-www-form-urlencoded| && $ENV{'CONTENT_TYPE'} !~ m|^multipart/form-data| ) { my($param) = 'POSTDATA' ;
So I still would have need to patch CGI to handle PUT and when it comes down to it the foo magic is much higher in CGI than it is in CGI::Simple. That being said, I think I should rework my code to the POST and PUT data in the PARAMs under POSTDATA and PUTDATA.# If $meth is not of GET, POST or HEAD, assume we're being debugged of +fline. # Check the command line and then the standard input for data. # We use the shellwords package in order to behave the way that # UN*X programmers expect.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: REST Webservices
by rhesa (Vicar) on Apr 12, 2007 at 12:53 UTC | |
by arbingersys (Pilgrim) on Nov 20, 2009 at 22:05 UTC | |
Re^3: REST Webservices
by jhourcle (Prior) on Apr 12, 2007 at 20:01 UTC |