Apache-Request-Redirect

 view release on metacpan or  search on metacpan

Redirect.pod  view on Meta::CPAN

=item args

This is a reference to an hash of form params that have been passed to the real site

=item host

This method set/get the host part of the uri used to route the browser request. This
value is also the rempote address used to open the HTTP socket.

=item redirect

This method send the browser request to

  http://$self->host/$self->url

getting the response and return it as a HTTP::Response object.

=item url

This is the path part of the uri used to route the browser request.

=back

=head2 PUBLIC VARIABLES

=over 4

=item C<$Apache::Request::Redirect::LOG>

If set to a value different from 0 it enables request/response logs to 
C</tmp/Apache_Request_Redirect.log> file.

If set to -1 enabled all logs.

If set to C<$LOG_REQUEST> logs only request informations.

If set to C<$LOG_RESPONSE> logs only response informations.

See also L<LOG::SimpleFile>.

=back

=head1 SUPPORTED PROTOCOLS

I've tested this module with this protocols:

=over 4

=over 4

=item * 

HTTP GET with or without query string

=item * 

HTTP POST in application/x-www-form-urlencoded

=item * 

HTTP POST in multipart/form-data with files upload

=back

=back

=head1 DIAGNOSTICS

No diagnostics error returned.

=head1 EXPORT

=over 4

=item C<$LOG_REQUEST>

Used like a value for C<$Apache::Request::Redirect::LOG> enables request logging.

=item C<$LOG_RESPONSE>

Used like a value for C<$Apache::Request::Redirect::LOG> enables response logging.

=back

=head1 REQUIRES 

HTTP::Response, HTTP::Request, HTTP::Headers, LWP::UserAgent, URI, Log::SimpleFile (opt.)

=head1 AUTHOR

Emiliano Bruni, E<lt>info/at/ebruni_dot_it<gt>

=head1 SEE ALSO

L<HTTP::Request> , L<HTTP::Response>, L<Apache::Request>, L<HTML::Template>, 
L<HTML::Template::Extension::HEAD_BODY> 

To see some web sites that use this package take a look to http://www.micso.fr 
and http://www.micso.com

=cut



( run in 1.434 second using v1.01-cache-2.11-cpan-b16cb0d3907 )