in reply to Re^11: json return value
in thread json return value
This novice is back again. My cgi works when the following line of code is used as it uses the parameters after the logical or operator...
my $data = $q->param('POSTDATA') || '{"a":100,"b":300}';
but it doesn't when the following line is used...
my $data = $q->param('POSTDATA'};
I'm posting up the following json statement which I checked on jsonlint and gave no errors.
{"par":12345678912345,"id":20}
I get the following webserver error message
File does not exist: /home/myurl/public_html/500.shtml
It looks to as if the parameters are not parsed correctly or are not being received properly. Any help greatly appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^13: json return value
by Anonymous Monk on Jul 26, 2013 at 02:51 UTC | |
by stenasc (Novice) on Jul 27, 2013 at 11:50 UTC | |
by Anonymous Monk on Jul 28, 2013 at 02:46 UTC | |
by stenasc (Novice) on Jul 30, 2013 at 13:05 UTC | |
by Anonymous Monk on Jul 30, 2013 at 13:16 UTC | |
|
In Section
Seekers of Perl Wisdom