in reply to Question using HTTP::Request::Common

use CGI; my $DEV_URL = 'http://server2.com/page.html'; my $q = CGI->new; print $q->redirect( $DEV_URL );
See CGI, section GENERATING_A_REDIRECTION_HEADER.

Replies are listed 'Best First'.
Re^2: Question using HTTP::Request::Common
by Becker (Initiate) on Mar 29, 2007 at 18:54 UTC
    Not exactly

    I need to post the data included in the script.

      You should reconsider. Let the browser do that.

      Otherwise, if you insist on retrieving the server2 page yourself, then you will have to go all the way and be a proper proxy.

        I can't reconsider or change this... I need to pass the informations using POST method to a java jsp page belonging to a tool in which codes I can't make changes. This tool is in the server2, and I can't change it.