in reply to Re: Redirect Page with POST
in thread Redirect Page with POST

You still would need to encrypt the data if you did this, otherwise a View Page Source would reveal the "sensitive" information.

Brad

Replies are listed 'Best First'.
Re^3: Redirect Page with POST
by hossman (Prior) on Jul 14, 2004 at 21:44 UTC

    No one ever said the data was "sensitive", the OP just asked for a way to redirect without needing to shove all of the data into the URL (probably because he thought it looks ugly)

    The fact that teh OP wnats to "redirect a POST" implies that all of the "sensitive" data came from the user, so what differences does it make if the user sees it?

      thanks for all your help. hossman is exactly right, it's not sensitive data but merely the equivalent to building a watch that doesn't expose the clockwork. hmm, i will conclude from your various comments that there is no straight solution per se. any option that is not 100% compatible is out (javascript, 307 redirect etc..) i'm now thinking to go with LWP::Agent after all using the forwarded url, even though it will not actually forward, the results seem to be the same:
      require LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST => $forwarded_url); $req->content_type('application/x-www-form-urlencoded'); $req->content($parameters_from_input); my $res = $ua->request($req); print "Content-type: text/html\n\n"; print $res->content; exit;
      Only thing is, i remember reading somewhere that there might be some problems with headers and cookies etc. I'm testing it right now and cant see anything obvious. Caution flags anyone?