in reply to What are best practices for Fast CGI nowadays?

In a hurry: probably this is a starting point.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
x-www-form-urlencoded
by mldvx4 (Hermit) on Mar 21, 2018 at 20:13 UTC

    Ok, thanks. I've seen that and pretty much anything similar that can be found with Startpage.com. I can get the environment variables with FCGI no problem.

    ... HTTP_CONTENT_TYPE = application/x-www-form-urlencoded ...

    I'm still left wondering how to get at the form data. I'd like the FCGI equivalent of ->params from old, slow CGI to get the idea behind FCGI.

    use CGI; my $q = CGI->new; # Process an HTTP request my @values = $q->multi_param('form_field'); my $value2 = $q->param('param2_name');

    It has to be Fast CGI because that is the API used by nginx and OpenBSD's httpd.

      I'm still left wondering how to get at the form data.

      heh, use CGI ; its magic like that

        d'oh. That was what I was missing. CGI can be used with CGI::Fast.

        ... use CGI::Fast; use CGI qw(:standard); ...