dm_cgi_content Function

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

Uses

    • unix
  • proc~~dm_cgi_content~~UsesGraph proc~dm_cgi_content dm_cgi_content unix unix proc~dm_cgi_content->unix

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.

Arguments

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

CGI environment type.

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

Returned request body.

Return Value integer


Calls

proc~~dm_cgi_content~~CallsGraph proc~dm_cgi_content dm_cgi_content c_read c_read proc~dm_cgi_content->c_read

Called by

proc~~dm_cgi_content~~CalledByGraph proc~dm_cgi_content dm_cgi_content proc~dm_cgi_form dm_cgi_form proc~dm_cgi_form->proc~dm_cgi_content