Hi dear beginner's list,

I want my perl script to call a certain url (second script) and pass the message with 
the POST method.
Ii works, if I use GET method to send the value, as follows:


   $aMessage = "My beautiful message";
   $cgi = new CGI;
   $location = "http://www.yyy.com/cgi-bin/secondScript.pl\?message="; . $aMessage;
   print $cgi->header( -location=>$location);



but, I would love to have the parameters sent by POST method, which somehow doesn't 
work ...

   $aMessage = "My beautiful mesage";
   $cgi->param(-name=>'fldmessage',-value=>$aMessage);
   $location = "http://www.yyy.com/cgi-bin/secondScript.pl";;
   print $cgi->header( -location=>$location);

Any ideas what am I doing wrong?
Thanx for your help and have fun!
Albena


Reply via email to