NAME

Example of FastCGI test

SYNOPSIS

<Location /fcgi>
    SetHandler "proxy:fcgi://localhost:8765"
</Location>

DESCRIPTION

The FastCGI script demonstrate various examples of how WWW::MLite work.

METHODS

WWW::MLite methods

GET /fcgi

curl -v --raw http://localhost/fcgi

> GET /fcgi HTTP/1.1
> Host: localhost
> User-Agent: curl/7.50.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 31 May 2019 09:06:27 GMT
< Server: WWW::MLite/2.00
< Connection: close
< Content-Length: 467
< Vary: Accept-Encoding
< Content-Type: text/plain
<
{
  'attrs' => {
    'bar' => 'on',
    'deserialize' => 0,
    'foo' => 'blah-blah-blah',
    'serialize' => 1
  },
  'description' => 'Index page',
  'method' => 'GET',
  'name' => 'getIndex',
  'params' => [
    bless( {
      '.charset' => 'ISO-8859-1',
      '.fieldnames' => {},
      '.parameters' => [],
      'escape' => 1,
      'param' => {},
      'use_tempfile' => 1
    }, 'CGI::Fast' )
  ],
  'path' => '/fcgi',
  'requires' => [],
  'returns' => {}
}

GET /fcgi/dump

curl -v --raw http://localhost/fcgi/dump

> GET /fcgi/dump HTTP/1.1
> Host: localhost
> User-Agent: curl/7.50.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 31 May 2019 09:07:37 GMT
< Server: WWW::MLite/2.00
< Connection: close
< Content-Length: 3384
< Vary: Accept-Encoding
< Content-Type: text/plain
<

GET /fcgi/env

curl -v --raw http://localhost/fcgi/env

> GET /fcgi/env HTTP/1.1
> Host: localhost
> User-Agent: curl/7.50.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 31 May 2019 09:08:37 GMT
< Server: WWW::MLite/2.00
< Connection: close
< Content-Length: 1037
< Vary: Accept-Encoding
< Content-Type: text/plain
<

SEE ALSO

CGI, HTTP::Message, CGI::Fast, http://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses/