redirect - How do I send values with POST when redirecting in Perl? -
i have 2 values 1 name , password pass page if user entered right combination. if user did know can redirect including values in query string like:
$cgi->redirect('http:someotherpage.com?username=$username&password=$password');
but using request, there way same thing using post or there way pass on values when redirecting in perl? know jsp has method called requestdispatcher there in perl if post not available?
edit: found link cgi application dispatch earlier it's little technical don't know if right tool job.
edit: i'm using cgi.pm
when doing http redirect can give url of new target. means, there no way specify data post request, because outside url.
from understanding requestdispatcher jsp not send http redirect response, forwards current request internally inside jsp application. comparable let cgi script dispatch current request script on same server, without doing redirect through browser. details how depend on framework use (e.g. dancer, mojolicious, catalyst ... or plain cgi.pm)
Comments
Post a Comment