Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: post url with 2 input

by marto (Cardinal)
on Jun 23, 2017 at 09:41 UTC ( [id://1193340]=note: print w/replies, xml ) Need Help??


in reply to post url with 2 input

If you are using LWP::UserAgent read the documentation for the post() method, otherwise please take the time to read and understand How do I post a question effectively? and ask better questions.

Replies are listed 'Best First'.
Re^2: post url with 2 input
by bigup401 (Pilgrim) on Jun 23, 2017 at 09:53 UTC

    lets say

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

    and i want to make url post

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

      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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-07-14 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.