Mailing List Archive

Creating an API with Embperl and POST Requests
Hello,

we try to create an API solution with Embperl. We receive a JSON structure send vie POST.

The problem: there is nothing stored in %fdat. I think it is skipped, because the POST data are not in the form "KEY=VALUE" but it's only a JSON structure.

Is there a way to access the POST body in an embperl template?


And, just to be safe: does Embperl handle the other HTTP methods (PUT, DELETE, PATCH,...) or will there be the next problem?


With best regards,

Dirk Melchers
/// IT/Software-Development ///

NUREG GmbH ///
Dorfäckerstraße 31 | 90427 Nürnberg | Germany
Tel. +49-911-32002-256 | Fax +49-911-32002-299
Mobil +49-172-9354670 | www.nureg.de
Nürnberg HRB 22653 | USt.ID DE 814 685 653
Geschäftsführer: Michael Schmidt, Stefan Boas


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org