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


sub handler { my $r = shift;

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


Apache mod_perl >= 1.26, LWP::UserAgent


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.


Main Handler