http://www.perlmonks.org?node_id=1193341


in reply to Re: post url with 2 input
in thread post url with 2 input

lets say

$input1 = $cgi->param() $input2 = $cgi->param()

and i want to make url post

post => http://link.com/?num=either1 $input or $input2

Replies are listed 'Best First'.
Re^3: post url with 2 input
by marto (Cardinal) on Jun 23, 2017 at 10:01 UTC

    I'd probably start by suggesting that you write using Mojolicious::Lite rather than CGI in future, since it makes all this stuff easier with the Mojo modules. Regardless my previous answer suggests looking at the docs for LWP::UserAgent, the post() method which provides a working examples for exactly what you want to do. If you want to use a tool, read and understand the manual.