Apache2-POST200

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    Apache2::POST200 - Converting code 200 responses to POST requests to 302

SYNOPSIS
      LoadModule perl_module ...
      PerlLoadModule Apache2::POST200;

      POST200Storage dbi:mysql:db=db:localhost user password
      POST200Table p200 session data
      PerlOutputFilterHandler Apache2::POST200::Filter
      <Location "/-redirect-">
        SetHandler modperl
        PerlResponseHandler Apache2::POST200::Response
      </Location>

      RewriteEngine On

      # redirect GET/HEAD requests with a matching QUERY_STRING to

README  view on Meta::CPAN


      # keep mod_alias (ScriptAlias) happy
      RewriteRule . - [PT]

     or

      # This is now a forward proxy setup.

      Listen localhost:8080
      <VirtualHost localhost:8080>
        POST200Storage dbi:mysql:db=db:localhost user password
        POST200Table p200 session data
        PerlOutputFilterHandler Apache2::POST200::Filter
        <Location "/-localhost-8080-">
          SetHandler modperl
          PerlResponseHandler Apache2::POST200::Response
        </Location>

        # defined a prefix instead of "-redirect-"
        POST200Label -localhost-8080-

README  view on Meta::CPAN


    Note: the redirect must go to the same URL because some WEB application
    forget the "action" attribute in their "<form>" definitions.

  Configuration
    The module itself is loaded from the Apache configuration file via a
    "PerlLoadModule" directive. It then provides a few configuration
    directives of its own. All directives are allowed in server config,
    virtual host and directory contexts.

    Post200Storage dsn user password
        "Post200Storage" describes the database to be used. All 3 parameter
        are passed to the DBI::connect method, see DBI. User and password
        can be omitted if the database supports it.

        "Post200Storage None" disables the output filter. That means replies
        with a HTTP code 200 to a POST request are delivered as is.

    Post200Table table key-column data-column
        "Post200Table" describes the table to be used. The "key" column must
        be able to hold a 41-byte string of printable ascii characters. The
        key length may be extented in future versions of this module but a
        key will always consist of printable characters.

lib/Apache2/POST200.pod  view on Meta::CPAN

=head1 NAME

Apache2::POST200 - Converting code 200 responses to POST requests to 302

=head1 SYNOPSIS

  LoadModule perl_module ...
  PerlLoadModule Apache2::POST200;

  POST200Storage dbi:mysql:db=db:localhost user password
  POST200Table p200 session data
  PerlOutputFilterHandler Apache2::POST200::Filter
  <Location "/-redirect-">
    SetHandler modperl
    PerlResponseHandler Apache2::POST200::Response
  </Location>

  RewriteEngine On

  # redirect GET/HEAD requests with a matching QUERY_STRING to

lib/Apache2/POST200.pod  view on Meta::CPAN


  # keep mod_alias (ScriptAlias) happy
  RewriteRule . - [PT]

 or

  # This is now a forward proxy setup.

  Listen localhost:8080
  <VirtualHost localhost:8080>
    POST200Storage dbi:mysql:db=db:localhost user password
    POST200Table p200 session data
    PerlOutputFilterHandler Apache2::POST200::Filter
    <Location "/-localhost-8080-">
      SetHandler modperl
      PerlResponseHandler Apache2::POST200::Response
    </Location>

    # defined a prefix instead of "-redirect-"
    POST200Label -localhost-8080-

lib/Apache2/POST200.pod  view on Meta::CPAN


=head2 Configuration

The module itself is loaded from the Apache configuration file via a
C<PerlLoadModule> directive. It then provides a few configuration
directives of its own. All directives are allowed in server config,
virtual host and directory contexts.

=over 4

=item B<Post200Storage dsn user password>

C<Post200Storage> describes the database to be used. All 3 parameter
are passed to the DBI::connect method, see L<DBI>. User and password
can be omitted if the database supports it.

C<Post200Storage None> disables the output filter. That means replies
with a HTTP code 200 to a POST request are delivered as is.

=item B<Post200Table table key-column data-column>

C<Post200Table> describes the table to be used. The C<key> column must be
able to hold a 41-byte string of printable ascii characters. The key length
may be extented in future versions of this module but a key will always



( run in 0.843 second using v1.01-cache-2.11-cpan-49f99fa48dc )