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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -