dm_fcgi_content Function

public function dm_fcgi_content(env, content) result(rc)

Reads HTTP request body (POST method). The the content length is 0, the argument content will be allocated but empty on output.

The function returns the following error codes:

  • E_ALLOC if memory allocation failed.
  • E_BOUNDS if content length is negative.
  • E_EMPTY if content length is zero.

Arguments

Type IntentOptional Attributes Name
type(cgi_env_type), intent(inout) :: env

CGI environment.

character(len=:), intent(out), allocatable :: content

Returned request body.

Return Value integer