Reads HTTP request body (POST method). We have to rely on read(2)
as Fortran cannot read unformatted content from standard input. On
error, the string content is allocated but empty.
The function returns the following error codes:
E_ALLOC if memory allocation failed.E_EMPTY if no content is available.E_EOF if end of file is reached.E_READ if system call failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(cgi_env_type), | intent(inout) | :: | env |
CGI environment type. |
||
| character(len=:), | intent(out), | allocatable, target | :: | content |
Returned request body. |