in reply to Send user to a different server

Well you can print a Location header to the client, and put the variables you get from the POST into the URL as a GET method.

Example:
... my $cgi = new CGI; my $param_value_from_post = $cgi->param('foo'); print "Location: https://secureserver.com/script.pl?foo=$param_value_f +rom_post\n\n";
This is insecure but the POSTed data has (probably) already been sent over the internet unencrypted.

Replies are listed 'Best First'.
Re^2: Send user to a different server
by Michalis (Pilgrim) on Jul 27, 2004 at 15:03 UTC
    Well, that's exactly what I'm trying to avoid.
    As I said in the first message, I know how to do a GET request, a POST is the one that troubles me.
    -- Michalis
      It's easy to do a post, but then the data is sent back to you from the secure server to the insecure server. Do you then want to send it to the client?
        That's exactly the problem!!!!
        I don't want to show the data to the client, as it's a new form, I'ld rather redirect the client to the secure web server in order to complete the form in a secure environment.
        Any good ideas?
        -- Michalis