Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Just another Perl shrine
 
PerlMonks  

Re: Mixing POST and GET with CGI::Application

by wfsp (Abbot)
on Mar 07, 2009 at 09:17 UTC ( #749026=note: print w/ replies, xml ) Need Help??


in reply to Mixing POST and GET with CGI::Application

I use path_info to pass the run mode when POSTing to a CGI::App.

In mode1.html the form tag would look like

<form action='/perl/index.cgi/mode2' method='post'>
Adjust the path to suit.

In TestSite.pm you would then have

$self->mode_param( path_info => 1, param => q{rm}, );
See the C::A docs for a discussion on path info.


Comment on Re: Mixing POST and GET with CGI::Application
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://749026]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-04-19 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (474 votes), past polls