redirecting cgi via post method

[email protected]
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
Greetings,

   I have a CGI that receives some parameters, and after processing  
them (it generates a file) it must be redirected to another CGI  
(external domain) to process it.

   What I want to do is similar to
      
redirect("http://somedomain.com/cgi-bin/myscript.cgi?param1=some&param2=stuff");

but using POST method instead of GET.


At first point, I imagine a solution with LWP::UserAgent using the  
POST method for the new user agent; but later, I don't know how to be  
redirected to the new address.

   my $ua_this = LWP::UserAgent->new;
   $ua_this->post("http://somedomain.com/cgi-bin/myscript.cgi", [
     param1 => "some",
     param2 => "stuff"
     ] );

  redirect($ua_this); # <-this? I don't think so


Any help will be appreciated.


Alejandro
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.