PAPI::POST_Handler - Helper for managing redirected POST requests at a PAPI PoA

SYNOPSIS

sub handler { my $r = shift;

    ...
 
    my $ua = new LWP::UserAgent;
    my $req = HTTP::Request->new($r->method, "http://$host$url");
    ...
}

REQUIRES

Apache mod_perl >= 1.26, LWP::UserAgent

DESCRIPTION

This mod_perl handler is used by a PAPI PoA for managing a POST request that has been redirected through a GPoA/AS to query for an assertion. The handler function in this package, according to Apache mod_perl conventions, is registered as the handler for a request by the PAPI Main handler when a redirected response from a GPoA/AS is received and the original request used the POST method.

The function reads all data posted by the original client request and stored by the Main handler when first called, and processes them, returning the results to the client.

SEE ALSO

Main Handler

RedirectGPoA