Perl CGI processing application json data
via a POST or PUT request from a client.
the server or receiving side would do as listed in this link:
http://stackoverflow.com/questions/19610312/perl-cgi-passing-variable-in-post-with-json
From CGI,If POSTed data is not of type application/x-www-form-urlencoded or multipart/form-data, then the POSTed data will not be processed, but instead be returned as-is in a parameter named POSTDATA. To retrieve it, use code like this:
my $data = $query->param('POSTDATA');
From JR's : articles
65 words - 509 chars
created on
- #
source
- versions
Related articles
Perl try, catch, eval, die, warn, carp - Jun 25, 2013
Perl Timer Code - Feb 11, 2015
Testing module to keep in mind - November 2002 - Jul 18, 2014
Loop through a Perl array - Oct 02, 2013
Perl Critic and Diag - Oct 09, 2013
more >>